Closed boris27 closed 2 years ago
@boris27 could you elaborate a little bit more on your real use case? Do you use such code in your Angular application or it is just here to somehow simulate real use case? Isn't it related to an Angular issue described here - https://github.com/ckeditor/ckeditor4-angular/pull/111#issuecomment-645941971 :thinking:
Hi, It's been a while since we last heard from you. We're closing this issue for now. Still, feel free provide us requested feedback, so that we can reopen this issue.
Same issue is happening in my project as well. It is reporting following error:
Uncaught TypeError: Cannot read property 'unselectable' of null
at e (ckeditor.js:349)
at a.<anonymous> (ckeditor.js:345)
at a.d (ckeditor.js:10)
at a.<anonymous> (ckeditor.js:11)
at a.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13)
at a.fireOnce (ckeditor.js:12)
at a.CKEDITOR.editor.CKEDITOR.editor.fireOnce (ckeditor.js:13)
at Object.<anonymous> (ckeditor.js:272)
at g (ckeditor.js:252)
at Object.load (ckeditor.js:252)
For simple use case inside a pop-up dialog. For example,:
<p-dialog>
<ckeditor
#editor
formControlName="body"
[config]="ckconfig"
></ckeditor>
</p-dialog>
@desmonduz could you provide a demo (e.g. on stackblitz or similar) where your issue could be reproduced? I wonder if it's caused by placing editor inside dialog/modal (p-dialog
).
Hi @f1ames
I have made a simple demo here: https://stackblitz.com/edit/angular-ivy-grhjxj
Same issue is happening in my project as well.it may be caused by placing editor inside modal
Same issue here.
In my case: When i use ckeditor inside Angular Material Tabs, the first tab work properly, but, the second tab, with the hidden content, throws this error. And, when i go to second tab and come back to the first tab, the ckeditor is not working anymore.
I'm reopening this issue since the problem is still there. For everyone interested - it's an upstream from ckeditor4 itself, we created a generic issue there (https://github.com/ckeditor/ckeditor4/issues/4390) with two follow-ups (https://github.com/ckeditor/ckeditor4/issues/4461 and https://github.com/ckeditor/ckeditor4/issues/4462) we are actively working on (one is already merged to the major
branch, the other comes through the second review). After the release containing those two PRs (probably 4.17.0
) we'll update the configuration in sample and all UI frameworks should start working fine.
Closing https://github.com/ckeditor/ckeditor4-angular/issues/190 should be at least a partial fix.
There is another nice debugging sample provided by a user in https://github.com/ckeditor/ckeditor4-angular/issues/192 (closed as duplicate).
This issue should be resolved with https://github.com/ckeditor/ckeditor4-angular/issues/190.
Hi, The background laying issue was fixed in CKEditor v4.17.
2.3.0
is by default linked to CKE4 4.17.1
, but it requires to use of proper config.2.4.0
version introduces (in this integration) the default usage of the delayed editor initialization feature (blog post).2.4.1
- see notes.Since the issue was fixed. I'm closing this report. If you encourage any further issues - feel free to open another issue. Thank you for your patience.
Closed with #190.
Are you reporting a feature request or a bug?
Bug
hi guys, i have little different situation(which described in #110 ), and your fix in 1.2.2 doesnt work for me
this is example of above code, little modified to exampled my situation) https://stackblitz.com/edit/angular-ivy-taveju?file=src%2Fapp%2Fapp.component.ts