add code for event listener for keypress in ckeditor

前端 未结 6 465
难免孤独
难免孤独 2020-12-31 05:52

I need to add an event listener for keypress after the CKEditor is loaded. The code is something like:

CKEDITOR.instances.editor1.document.on(\'key\', fu         


        
6条回答
  •  执笔经年
    2020-12-31 06:06

    CKEDITOR.instances.editor1.on('change', function () { //Do something here.});
    

    This code registers any change event including copy-paste.

提交回复
热议问题