RichTextEditor Demo
Home Pricing

## 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:

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