릴리즈 3.1.0 이상 릴리즈 2.19.0 이상
Open the Synap Editor with SEModel (Synap Editor Model).
Parameters:
Name | Type | Description |
---|---|---|
model | Object | string | SEModel (JSON type) | SEModel (string type) |
options | Object | { loadingProgress = true, // Whether to show loading progress (default: true) callback: function() {}, // Callback function to be called after completion bAsync: false, // Synchronous processing (default: false) bFocus: true, // Focus on editor after opening document (default: true) clearDirty: true, // Save information about whether or not the text has been edited (default: true) useAltImage: true // Alternative image conversion (default: true) } |
Example:
var json = editor.getBodyModelJSON(); editor.openSEModel(json); var jsonStr = editor.getBodyModelJSON(true); editor.openSEModel(json);