ckeditor does not rise always onSelectionChange event -


i try onselectionchange event ckeditor.

when select ckeditor rise correctly event, if select else in same paragraph event not raised.

is there way make creditor rise onselectionchange event time select text. ?

any advice on solve issue ?

thanks

the answer in api documentation:

fired when selection inside editor has been changed. note event fired when selection's start element (container of selecion start) changes, not on every possible selection change. selectionchange fired less frequently, on every context (the elements path holding selection's start) change.

you can observe mouse , keyboard actions though (jsfiddle):

function logselection() {     console.log( this.getselection() ); }  ckeditor.replace( 'editor', {     on: {         contentdom: function() {             this.document.on( 'mouseup', logselection, );             this.document.on( 'keyup', logselection, );         }     } } ); 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -