openHTML
Loads HTML content into the Synap Editor.
Parameters
| Name | Type | Description |
|---|
html | string | HTML content |
[options] | object | (Release 2.6.0+) See below |
options
| Name | Type | Default | Description |
|---|
callback | function | — | Callback invoked after the operation completes |
bAsync | boolean | false | Asynchronous processing |
bFocus | boolean | true | Focus the editor after opening |
bOverwrite | boolean | true | Overwrite existing content |
clearDirty | boolean | true | (2.11.0+) Reset the dirty flag |
useAltImage | boolean | true | (2.11.7+) Use alternative image conversion |
Example
var html = '<H1>Synap Editor</H1><P>Holistic Rich Text Editor</P>';
editor.openHTML(html);