editor.createToolbarButton(cmdname)
既定のスタイルでツールバーにボタンを作成します。詳しくはプラグインの例を参照してください。
構文
editor.createToolbarButton(cmdname)
パラメーター
型:String
コマンドの名前。
パラメーター
型:HTMLElement
ツールバーのボタン。
使用例
var editor1 = new RichTextEditor("#div_editor1");
var btn=editor1.createToolbarButton("bold");
btn.style.width="32px"
btn.style.height="32px"
editor1.container.parentNode.insertBefore(btn,editor1.container);