Methods
(static) addEditor(editor)
Add an editor to the current context.
Parameters:
Name | Type | Description |
---|---|---|
editor |
(async, static) create(parentId) → {Promise.<Editor>}
Creates a new instance of the Editor class and initializes it.
Parameters:
Name | Type | Description |
---|---|---|
parentId |
string | The ID of the editor div. |
Returns:
A promise that resolves to the initialized Editor instance.
- Type
- Promise.<Editor>
(static) newEditorContext()
Create a new editor context.
(static) popAllEditorContexts()
Destroys all popup and screen editors that have been created
(static) popEditorContext()
Destroy all editors in last context and remove the context
clear()
Clears the content of the editor.
dispose()
Dispose of the editor when it is no longer needed.
Generally, Kiss handles this automatically.
getHtml() → {string}
Retrieves the HTML content from the editor.
Returns:
The HTML content of the editor.
- Type
- string
getText() → {string}
Retrieves the text (not HTML) content of the editor.
Returns:
- Type
- string
printEditorContent()
Print the contents of the editor
readOnly()
Sets the editor to read-only mode.
readWrite()
Sets the editor to read-write mode.
setHtml(html)
Sets the HTML content in the editor.
Parameters:
Name | Type | Description |
---|---|---|
html |