javascript - Retrieving cut data in Ckeditor -


i'm searching way data of cut event in ckeditor. , looking within sourcecode posted on github. after trying data on ie8, mozilla(mac) follow 2 examples

    editor.editable().on('cut', function (ev) {         console.log(ev.datavalue);     });      editor.editable().on('cut', function (ev) {         console.log(ev.data.datavalue);     }); 

i couldn't find out problem not retrieving data. know how retrieve data cut event in ckeditor?

you can't.

ckeditor utilizes native document.execcommand clipboard operations. doesn't store cut/copied browser does. browsers except ie won't let manipulate clipboard data (ie display prompt first). in fact, ckeditor has (almost) nothing cutting process.

in ie , webkit, can try onbeforecut event listen on , access editor's selection editor.getselection() (i.e. editor.getselection().getselectedtext()).


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -