CKEditor on font-size change event

非 Y 不嫁゛ 提交于 2019-12-11 02:28:38

问题


Is there any way to capture an event when user has changed font-size?

I'm looking for something similar to this:

CKEDITOR.editor.getCommand('xxx').on('xxx', function(){

});

回答1:


You need to use:

CKEDITOR.instances.your_instance_name.on( 'change', function() {
    //  Code goes here
} );

Replace your_instance_name with your instance name.



来源:https://stackoverflow.com/questions/19490380/ckeditor-on-font-size-change-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!