0
當我在ckEditor中點擊B時,我想彈出一個msgbox,如alert('Good Morning')。 如何做到這一點?如何覆蓋ckEditor工具欄上的BOLD
當我在ckEditor中點擊B時,我想彈出一個msgbox,如alert('Good Morning')。 如何做到這一點?如何覆蓋ckEditor工具欄上的BOLD
我想你可以做到這樣的,例如:
var editor = CKEDITOR.instances['name_of_your_instance'],
button = editor.toolbox.toolbars[0].items[0].button,
f = button.click;
button.click = function(m) {
alert('Good Morning');
f(m);
};
當然,你需要知道工具欄的指數,該項目的索引,和實例^^
的名稱