2
我想添加一個監聽器的selectPage事件到我的CKEditor插件,但到目前爲止我無法讓它工作。該插件工作正常,但我的聽衆不工作。下面的警報永遠不會被調用。CKEditor如何添加一個selectPage監聽器
代碼:
var dialog = function(editor) {
editor.on('selectPage', function(e) {
alert("Page changed");
});
// rest of the plugin code
}
有什麼我做錯了嗎?