Page tree

Versions Compared

Key

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

...

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


Parameters:

NameTypeDescription
modelObject | stringSEModel (JSON type) | SEModel (string type)
optionsObject


Code Block
languagejs
{
	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
languagejs
themeEmacs
var json = editor.getBodyModelJSON();
editor.openSEModel(json);

var jsonStr = editor.getBodyModelJSON(true);
editor.openSEModel(json);


Related information

...