openHTML

Loads HTML content into the Synap Editor.

Parameters

NameTypeDescription
htmlstringHTML content
[options]object(Release 2.6.0+) See below

options

NameTypeDefaultDescription
callbackfunctionCallback invoked after the operation completes
bAsyncbooleanfalseAsynchronous processing
bFocusbooleantrueFocus the editor after opening
bOverwritebooleantrueOverwrite existing content
clearDirtybooleantrue(2.11.0+) Reset the dirty flag
useAltImagebooleantrue(2.11.7+) Use alternative image conversion

Example

var html = '<H1>Synap Editor</H1><P>Holistic Rich Text Editor</P>';
editor.openHTML(html);