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);