...
Open the Synap Editor with SEModel (Synap Editor Model).
Parameters:
Name | Type | Description |
---|
model | Object | string | SEModel (JSON type) | SEModel (string type) |
options | Object |
Code Block |
---|
| {
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:
Code Block |
---|
|
var json = editor.getBodyModelJSON();
editor.openSEModel(json);
var jsonStr = editor.getBodyModelJSON(true);
editor.openSEModel(json); |
Related information
...