API Modal

Artur Arseniev edited this page Aug 30, 2016 · 1 revision

Modal

Before using the methods you should get first the module from the editor instance, in this way:

var modal = editor.Modal;

close

Close the modal window

Returns this

getContent

Get the content of the modal window

Returns string

getTitle

Returns the title of the modal window

Returns string

isOpen

Checks if the modal window is open

Returns Boolean

open

Open the modal window

Returns this

setContent

Set the content of the modal window

Parameters

Examples

modal.setContent('<div>Some HTML content</div>');

Returns this

setTitle

Set the title to the modal window

Parameters

Examples

modal.setTitle('New title');

Returns this