You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
irvinrangelc, rmcsharry, ruxchuk, muhammadali1995, devendra021288 and 6 morerplaurindo, alejandro-medina and manishbtrplaurindo, alejandro-medina and manishbtalejandro-medina and manishbt
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):
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:
this._ckEditorIstance.focusManager.blur(true);
There is no way to destroy correctly whitout setTimeout and whitout hacks?
Location: plugins/wysiwygarea/plugin.js
Description: The editor's <iframe> could not be destroyed correctly because it had been unloaded before the editor was destroyed. Make sure to destroy the editor before detaching it from the DOM.
Additional data: None.
Hi all.
I dont understand how may I import an instance and close iframe.
From my point of view its impossible to call cKEditorComponentngInstance.OnDestroy() from my app.ts.
May u help me with that?
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
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.
Activity
yabab-dev commentedon Aug 2, 2016
Same as #23 need to use
divarea
plugin or inline modepain0486 commentedon Feb 15, 2017
I added the extraPlugins: 'divarea' and got the following:
Failed to load resource: the server responded with a status of 404 (Not Found) http://cdn.ckeditor.com/4.5.11/full/plugins/divarea/plugin.js/.
niravpatel9898 commentedon Feb 16, 2017
same here @pain0486
yabab-dev commentedon Feb 16, 2017
Please use
full-all
package : http://cdn.ckeditor.com/4.5.11/full-all/plugins/divarea/plugin.jsSee http://cdn.ckeditor.com/ to use local package
pain0486 commentedon Feb 16, 2017
Worked perfectly thanks @CHYMZ !
niravpatel9898 commentedon Feb 17, 2017
Sorted !! thank you very much @CHYMZ
OdaiTu commentedon Mar 4, 2017
i just did the same thing and i got this error
Uncaught ReferenceError: CKEDITOR is not defined
at plugin.js:5
AlexandrZl commentedon Mar 16, 2017
The above way doesn't work
7 remaining items
saostad commentedon Jul 31, 2017
Solution is :
in component:
and in index.html as reference:
<script src="https://cdn.ckeditor.com/4.7.0/full-all/ckeditor.js"></script>
rmcsharry commentedon Oct 13, 2017
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.
gianny82 commentedon Oct 30, 2017
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:
this._ckEditorIstance.focusManager.blur(true);
There is no way to destroy correctly whitout setTimeout and whitout hacks?
yangfan0095 commentedon Dec 5, 2017
http://docs.ckeditor.com/#!/guide/dev_errors-section-editor-destroy-iframe
editor-destroy-iframe
Location: plugins/wysiwygarea/plugin.js
Description: The editor's <iframe> could not be destroyed correctly because it had been unloaded before the editor was destroyed. Make sure to destroy the editor before detaching it from the DOM.
Additional data: None.
ehsaanwelcome commentedon Dec 13, 2017
I think, issue is with settimeout in ngOnDestroy.
editor is removed first from the dom and then timeout fire
i test it without timeout and no warning.
but for this, i had to recompile the code
kjhatis commentedon Dec 13, 2017
@ehsaanwelcome Dont know why you are thinking! the ticket is already closed.
asterieks commentedon Dec 30, 2017
Hi all.
I dont understand how may I import an instance and close iframe.
From my point of view its impossible to call cKEditorComponentngInstance.OnDestroy() from my app.ts.
May u help me with that?
AlanObject commentedon Jan 30, 2018
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.
thedailycommute commentedon Apr 20, 2018
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
AlanObject commentedon Jul 23, 2018
thedailycommute -- your link goes 404. Can you repost?
thedailycommute commentedon Jul 24, 2018
It looks like all issues were relocated. As far as I can remember, this is the issue I originally linked to:
#212
khanh19934 commentedon Sep 11, 2018
if we use more than one plugins it show 404 not found ...
Marshal27 commentedon Oct 5, 2018
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.
https://stackoverflow.com/questions/48525867/angular-ng-ckeditor-and-the-editor-destroy-iframe-bug/52655850#52655850