-
Notifications
You must be signed in to change notification settings - Fork 96
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
ngFor with ng2-ckeditor #23
Comments
Thanks for this plunker ! |
It seems a CKEditor bug : https://dev.ckeditor.com/ticket/12258 Solution is to use divarea plugin or inline mode. I need to work on that... and at the same time this approach can fix #24 |
Here is the fix : https://embed.plnkr.co/PqRdBfUdvJ71uUPzY8vG/ You need to include
Inline mode is not available atm. Thanks for reporting this ! |
@CHYMZ I tried your solution but now I am receiving below error:
|
Note that using 'divarea' does make this error go away BUT the side effect is that now you are using a div for the editor instead of the standard hidden textarea you get with the iFrame of ckeditor out of the box. This means that the CSS styles for your website now apply inside the div (ie. inside the editor area itself). So the user changing things like font style and size could easily get unexpected results. The correct solution to this problem is to implement the ngOnDestroy hook in your component and destroy the instance of the editor, as shown here. |
@CHYMZ core.es5.js:1020 ERROR RangeError: Maximum call stack size exceeded what should I do now? |
@CHYMZ the link is broken https://embed.plnkr.co/PqRdBfUdvJ71uUPzY8vG/, and kindly update the link. I really need to configure CkEditor-5 Inline with NgFor in Angular-5 today. So kindly provide any working example. |
I use ckditor with ngFor, please see plnkr below.
plnkr: https://plnkr.co/edit/Rl4bBoMKOe6xFsduBaaS?p=preview
remove me 0
, and then ckeditor break.remove me 1
, ckeditor still can use.Did I miss something?
The text was updated successfully, but these errors were encountered: