Hello. I configure ckeditor. I downloaded the onchange plugin ( https://ckeditor.com/cke4/addon/onchange ). Connected it in config.js:

config.extraPlugins = 'onchange'; 

I wrote this code in config.js:

 CKEDITOR.on('instanceReady', function (ev) { var editor = ev.editor; editor.on('change', function() { console.log('zzz'); }); }); 

And now when I write something in my editor, zzz is displayed twice. Why is that? Should be displayed once.

  • I watched. If you press shift, ctrl, then the event will be one when you release the key. Apparently, the first event responds to the input of the character, and the second reacts to the release of the key. The event also occurs when the mouse cursor is moved over the edit field. - coder675
  • I figured out what the problem is. String config.extraPlugins = 'onchange'; need not. - user153742
  • I do not know. Even without it, it is still called twice. - coder675

0