A
A
alexandrnevajno12018-02-17 21:23:40
JavaScript
alexandrnevajno1, 2018-02-17 21:23:40

Ckeditor onchange - why does my code work 2 times?

Hello. Setting up ckeditor. Downloaded the onchange plugin ( https://ckeditor.com/cke4/addon/onchange). Connected it in config.js:
config.extraPlugins = 'onchange';
Wrote the following 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 output only once.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question