Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

릴리즈 3.1.0 이상 릴리즈 2.19.0 이상

Open the Synap Editor with SEModel (Synap Editor Model).


Parameters:

NameTypeDescription
modelObject | stringSEModel (JSON type) | SEModel (string type)
optionsObject
{
	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);

Related information





  • No labels