Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeDescription
Object


Code Block
languagejs
themeEmacs
titleexample
{
    original: {string},
    versions: [
        {
            data: {string},
            modified: {number},
            user: {
                id: {number},
                name: {string}
            }
        },
        ...
    ]
}
  • original: 업데이트 기록이 시작된 에디터 모델의 JSON String 입니다.
  • versions: 업데이트 기록입니다. 최대 100개 까지 유지됩니다.
    • data: 변경이 된 이후의 에디터 모델 JSON String 입니다.
    • modified: 변경이 일어난 클라이언트 시간 timestamp 입니다.
    • user: 변경을 한 사용자의 id, name 정보 입니다.


Status
colourYellow
title릴리즈 3.1.0 이상

Code Block
languagejs
themeEmacs
titleexample
[
    {
        modified: {number},
        rootModified: {boolean},
        snapshot: {Unit8Array},
        user: {
            id: {number},
            name: {string},
            color: {string}
        }
    },
    ...
]
  • original: 업데이트 기록이 시작된 에디터 모델의 JSON String modified: 변경이 일어난 클라이언트 시간 timestamp 입니다.versions: 업데이트 기록입니다. 최대 100개 까지 유지됩니다.data
  • rootModified: 문서의 body영역이 수정되었는지 여부입니다.
  • snapshot: 변경이 된 이후의 에디터 모델
  • JSON String 입니다.modified: 변경이 일어난 클라이언트 시간 timestamp
  • snapshot 입니다.
  • user: 변경을 한 사용자의 id, name 정보 입니다.


Code Block
languagejs
themeEmacs
titleexample
var editor = new SynapEditor(id, synapEditorConfig);
var collaboration = editor.plugins.collaboration;

var history = collaboration.getHistory();

...