Ckeditor to add your own events, then setData (" ") failure event afte

<script type="text/javascript">
//TODO: initialization editorgraphIsEnabled
editor = CKEDITOR.replace('editorContent', {});
//Binding events
CKEDITOR.instances["editorContent"].on("instanceReady", function () {
//set keyup event
this.document.on("keypress", function(evt){
alert("Press the"+evt.data.getKeystroke());
});
});

</script>

Initialization of the binding events, events can be used, but I passed editor.setData ("value"); put value, events will fail, and the same again binding is not successful, I think is it right? (setData) method in data source processing but also to reset the ckeditor. If so, why once again bound is not successful, expecting master..... Solution points over 5 times to send people

Started by Yehudi at November 13, 2016 - 11:02 PM

Posted by Yehudi at November 23, 2016 - 12:01 AM

Their top

Posted by Yehudi at December 01, 2016 - 12:53 AM

Master in where? ? ?

Posted by Yehudi at December 03, 2016 - 1:14 AM

How do you solve the setData () method, their binding event failure problem.

Posted by Ogden at December 10, 2016 - 1:25 AM

Use Baidu editor, really good.

Posted by Ogden at December 25, 2016 - 2:23 AM

With this one.

CKEDITOR.instances["editorContent"].on("key", function(evt){
alert("Press the"+evt.data.keyCode);
}
});

Posted by Taylor at January 06, 2017 - 2:56 AM