Event for ckeditor content changed

后端 未结 5 380
挽巷
挽巷 2021-01-01 15:48

If possible, how can we to the event of ckeditor\'s content being changed? For instance, there\'s some text already inserted into the ckeditor\'s content aka textarea when t

5条回答
  •  执笔经年
    2021-01-01 16:44

    Yes, there is the very handy change even that you can listen to. Documentation here: http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-change

    Use it for example like so (change editor1 to your editor instance):

    CKEDITOR.instances.editor1.on('change', function() { 
        console.log("TEST");
    });
    

提交回复
热议问题