Opened 9 years ago
Last modified 8 years ago
#14786 closed Bug
CK Editor 4.3 Instance Hang on IE — at Version 1
Reported by: | HinaSynergyIt | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: | hina.bashir@… |
Description (last modified by )
Steps to reproduce
I am using CK Editor 4.5.8 I am using Knockout js binding in my code We are using IE but it works on some machine but doesn't work on some machine
model dialog have 2 buttons Save and close
on model dialog initialization
<script type="text/javascript"> $(document).ready(function() { ckInstance = CKEDITOR.replace("txtAnmeldelse", { toolbar: 'Basic', uiColor: '#9AB8F3', resize_enabled: false }); }); ko.applyBindings(new WorkViewModel(), </script>
on close: call self.closeAndRefresh
self.closeAndRefresh = function () { var instance = CKEDITOR.instances.txtAnmeldelse var editor; if (instance) { // first distroy and create new instance.destroy(true); } window.close(); };
On page Edit mode call function : self.getWorkText
self.getWorkText = function() { var instance = CKEDITOR.instances.txtAnmeldelse; var editor; if (instance) { // first distroy and create new instance.destroy(true); } ckInstance = CKEDITOR.replace("txtAnmeldelse", { toolbar: 'Basic', uiColor: '#9AB8F3', resize_enabled: false }); ckInstance.on('instanceReady', function (e) { editor = e.editor; window.setTimeout(function () { // solution for permsion denied issue Permission denied //when calling setData very fast https://dev.ckeditor.com/ticket/10501 e.editor.setData(self.WorkText().Anmeldelse, { callback: function () { this.checkDirty(); // true - to clear previous intance } }); }, 50); }); }
Expected result
First time it load correctly but when i close pop-up window and reopen it i hangs.
ck Editor and give error permission denied on get_attribute function and make IE and CK editor responsiveness
Actual result
CKEditor should be open and bind correctly and should be destroy correctly
Other details (browser, OS, CKEditor version, installed plugins)
IE 11.0 Update 11.0.33 CKEditor 4.5.8
Change History (1)
comment:1 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Status: | new → pending |
Version: | 4.5.8 |
If some code works on some browsers but doesn't on other I would strongly recommend checking browser differences first. Perhaps some IE's have compatibility or quirks mode set? Perhaps they have some browser plugins which conflict with CKEditor?
If possible please provide reduced and working sample which we could run and see the problem. Are you able to reproduce this problem without knockout.js to exclude its possible influence on problem?
In page edit mode you create editor instance right after you have started destroying previous one. Could you try doing that after first instance is fully destroyed - http://docs.ckeditor.com/#!/api/CKEDITOR-event-instanceDestroyed and see if it makes any difference? You could also try using this method "on self.closeAndRefresh" - closing the window once editor is destroyed.