How to detect CKEditor source mode on change event

前端 未结 2 1348
不知归路
不知归路 2021-02-08 00:38

In CKEditor, I know that in the \"normal mode\", we can detect any content change using the following code:

ckeditor.on(\'change\',function(e){
  console.log(\"c         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 01:08

    Instead of using "change" event, the "key" event does fire on the source view.

    Thanks for Kicker's hint

提交回复
热议问题