Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Editor-destroy-iframe Error on form submission #30

Closed
naveedahmed1 opened this issue Aug 14, 2016 · 5 comments
Closed

Editor-destroy-iframe Error on form submission #30

naveedahmed1 opened this issue Aug 14, 2016 · 5 comments

Comments

@naveedahmed1
Copy link

Hi,

I am using ng2-ckeditor in one of my forms. But when I submit the form I see the below errors in console.


ckeditor.js:19 [CKEDITOR] Error code: editor-destroy-iframe.
ckeditor.js:19 [CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-editor-destroy-iframe

Can you please guide how to resolve it?

Is there a proper way to destroy ng2-ckeditor instance on ngDestroy to avoid any memory leaks?

@7Hd
Copy link

7Hd commented Aug 16, 2016

maybe you can try #24

use divarea plugin or inline mode

@yabab-dev
Copy link
Owner

Yes is related to #23 & #24

@ghost
Copy link

ghost commented Aug 16, 2016

@CHYMZ , @naveedahmed1 , I've used this to get rid of the message. I just run this before I close my dialog.

    for (name in CKEDITOR.instances) {
        CKEDITOR.instances[name].destroy(true);
    }

@naveedahmed1
Copy link
Author

I tried divarea plugin but now I am getting below error:

"Cannot read property 'getRanges' of null" on destroy?

@ashishnaghate
Copy link

for(name in CKEDITOR.instances){ CKEDITOR.instances[name].destroy() }
Use to code to destroy all the instances created by ckeditor

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants