【发布时间】:2013-11-09 16:42:26
【问题描述】:
切换工具栏按钮状态的最简单方法是什么(就像它使用默认的粗体按钮一样)?我无法“获得”将按钮外观从默认更改为选中的 Tinymce 类。这是我的插件代码(简化):
tinymce.PluginManager.add('myplugin', function (editor) {
editor.addButton('mybutton', {
text: false,
image: 'someimage.png',
onclick: function () {
/* Toggle this toolbar button state to selected (like with the tinymce bold-button)*/
/* and of course some other code goes here */
}
});
});
【问题讨论】:
标签: button tinymce toggle toolbar