-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CKEDITOR] Error code: editor-destroy-iframe #24
Comments
Same as #23 need to use |
I added the extraPlugins: 'divarea' and got the following: |
same here @pain0486 |
Please use See http://cdn.ckeditor.com/ to use local package |
Worked perfectly thanks @chymz ! |
Sorted !! thank you very much @chymz |
i just did the same thing and i got this error Uncaught ReferenceError: CKEDITOR is not defined |
The above way doesn't work |
[CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-editor-destroy-iframe |
Is there any way to fix this without moving to a divarea instead? We kind of need IFrame to stop styles spilling into the editor in our case. |
什么东西啊 写的尴尬的很 |
thank you very much @chymz |
Solution is :
and in index.html as reference:
|
The problem with using 'divarea' is that now your editor is a div in the page itself and therefore will use the styles from your website. If, for example, you want the font-style dropdown in the editor toolbar and your website does not load those fonts, those dropdowns will not work properly when changing font-size and font-style. The 'divarea' plugin basically replaces the hidden textarea with a div. So if you want full support in the editor you need to work out how to properly destroy the editor before leaving the current page that the iFrame is on. |
Hi all, I don't have the problem if from the CKEditorComponent father component I write the following code lines before to leave the page(note: _ckEditorIstance is the instance variable of the CKEditorComponent): `if (this._ckEditorIstance) {
I noticed that in ckeditor.component.ts there is a setTimeout that call the same code linesbut maybe the problem is that after the blink of the setTimeout the dom has already gone. @chymz : there is anyway a problem calling directly the destroy whitout setTimeout if the editor has the focus(I think that is the reason of the setTimeout). The problem goes away if I add the line:
There is no way to destroy correctly whitout setTimeout and whitout hacks? |
http://docs.ckeditor.com/#!/guide/dev_errors-section-editor-destroy-iframe editor-destroy-iframe Location: plugins/wysiwygarea/plugin.js |
I think, issue is with settimeout in ngOnDestroy. but for this, i had to recompile the code |
@ehsaanwelcome Dont know why you are thinking! the ticket is already closed. |
Hi all. |
I am running into this issue and as far as I can tell from this thread the issue is still open and there is no stable work-around. If that is not true can someone post a link to a good work around? The method of destroying all instances (loop on CKEDITOR.instances) won't work for me because I have multiple Angular components on the screen each with their own instance. |
Just in case anyone else comes looking for a solution here (and no, there isn't a solution that still allows us to use CKEDITOR without the 'divarea' plugin), this link helps explain the problem, and the fact that it has to do with the way Angular is implemented (including the latest versions): https://github.com/angular/angular/issues/14252 |
thedailycommute -- your link goes 404. Can you repost? |
It looks like all issues were relocated. As far as I can remember, this is the issue I originally linked to: |
if we use more than one plugins it show 404 not found ... |
Please see this SO post. A work around on destroying iFrame in Angular6 with modification to library file to eliminate error thrown by CKEditorComponent.prototype.ngOnDestroy in ckeditor.component.js. |
No description provided.
The text was updated successfully, but these errors were encountered: