Documentation

editor.createDialog

Creating a dialog with default styles. For details, please refer to plugin example.

Syntax

editor.createDialog(title,classname)

Return value

Type: String

The title of the dialog.

Return value

Type: String

The class name of the dialog.

Example usage

var editor1 = new RichTextEditor("#div_editor1");
var dlg=editor1.createDialog("Hello","myclass");
var panel=dlg.appendChild(document.createElement("div"));
panel.innerText="My Dialog Content";
setTimeout(function(){ dlg.close() },2000);