ckEditor - mouseup event not firing after setData -


so have ckeditor loaded through javascript, on instanceready event add event mouseup... works , dandy until use settext property (i used both jquery way , javascript way). after set, mouseup event no longer triggers. not after set event handler again.

relevant code:

var elem = ckeditor.instances[eid]; elem.document.on("mouseup",function(){             quickhandler(elem);         });    function quickhandler(who) {      $("#"+who.name).val(who.getdata() +    quicktextselected.quicktextdata);        $("input[type='text'],textarea, .cke_contents").css({border: "solid 1px rgb(155,181,234)"}).unbind("click");   } 

this jquery plugin version, works same way internal javascript ckeditor object map. (rather doesn't work).

does setdata or settext clear event handlers?

it seems using setdata ckeditor infact replaces document element rendering events invalid, see #6633


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -