-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Uncaught TypeError: Cannot read property 'attributes' of null #698
Comments
Note: |
The same problem can be reproduced with
|
It seems, this problem is more complex. First of all, I would like to know what is a proper behavior in situations: Situation A:
Answer: a) The part of widget b) The part of widget c) The part of widget Situation B:
Should be It looks like inline widgets don't support
So it's probably a new Feature Request (check https://dev.ckeditor.com/ticket/10974) rather than a bug. WDYT @mlewand? |
You're right we do not support inline editables ATM. Can't we patch up this particular exception? Based on what @msamsel said it looks to me that As for cases above I would say that it should not merge widget with the regular content (preceding header), however the (initially) selected content of the widget should get removed. But it's just my on-the-fly opinion, it would need to be discussed with more ppl before we pick anything. To conclude, @beatadelura can I ask you to:
|
New Feature Request added 👍 |
In my opinion, the fix should be done somewhere else because the problem is that additional wrapper is added incorrectly. Please look at this:
Notice, that additional
So this should be fixed first. |
Yes, but that's the scope of #1091 issue. Here we could limit ourself to prevent CKEditor from throwing errors in the console, we don't have to do anything in terms of editables in inline widgets, as we don't support them. |
If inline widgets are not supported, why is there an inline widget config option? |
Is there any update on it? |
Hi @woody-li, unfortunately we don't have any ETA on this issue for now due to other priorities. Do you have any particular case where this issue is visible or is it the same as reported in the issue description? |
This is still an issue in CKEditor 4.19.1. 😞 I'm not editing the widget at all, just switching between source and WYSIWYG mode. |
Can we patch this by just checking that ckeditor4/plugins/widget/plugin.js Lines 3061 to 3063 in a41004a
And here ( ckeditor4/plugins/embedsemantic/plugin.js Lines 84 to 87 in a41004a
|
Are you reporting a feature or a bug?
Bug
Provide detailed reproduction steps (if any)
In some very specific cases, editable inline widgets will throw an "Uncaught TypeError: Cannot read property 'attributes' of null" after making a modification to the content of the widget.
Please follow the steps below using this JSFiddle:
Actual result
The following error occurs:
Other details
The text was updated successfully, but these errors were encountered: