editor.createDialog
既定のスタイルでダイアログを作成します。詳しくはプラグインの例を参照してください。
構文
editor.createDialog(title,classname)
パラメーター
型:String
ダイアログのタイトル。
パラメーター
型:String
ダイアログのクラス名。
使用例
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);