openSEModel
Release 3.1.0 and above, Release 2.19.0 and above.
Opens Synap Editor with SEModel (Synap Editor Model).
Parameters:
<table> <thead> <tr><th>Name</th><th>Type</th><th>Description</th></tr> </thead> <tbody> <tr> <td><code>model</code></td> <td>Object | string</td> <td>SEModel (JSON type) | SEModel (string type)</td> </tr> <tr> <td><code>options</code></td> <td>Object</td> <td>{
loadingProgress = true, // Whether to show the loading progress. (Default: true)
callback: function() {}, // Callback function to be called after completion
bAsync: false, // Synchronous processing (Default: false)
bFocus: true, // Focus on the editor after opening the document (Default: true)
clearDirty: true, // Save whether the body has been edited (Default: true)
useAltImage: true // Alternative image conversion (Default: true)
}
</td>
</tr>
</tbody>
</table>
Example:
var json = editor.getBodyModelJSON();
editor.openSEModel(json);
var jsonStr = editor.getBodyModelJSON(true);
editor.openSEModel(json);
Related information
getBodyModelJSON