-
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
source tab view out gives "Uncaught TypeError: b is null in Firefox" #4782
Comments
It can be reproduced in "normal" CKEditor by adding It's connected with changes introduced in #4637, especially the code that adds ARIA attributes to the editable. For some reason it seems to run in Firefox before editable is fully initialised after switching back to WYSIWYG mode. |
Oh Thanks. So there is a chance I just have to wait for an official fix. 😄 Just as a sidenote. My Serendipity Styx Blog environment has a basic ckeditor in core also with |
Yes, the issue originates from I created an editor with plugins you mentioned above and it seems that the bug is also present in such a case: https://jsfiddle.net/eg7c4wnz/ |
Our aria updates happens when our In FF this is happening right after reseting editable to null (due to mode change). In other browsers, right after the reseting, the editable is able to recreate and then our aria updater is invoked. |
Closed in #4800 |
Does this happen with "normal" installation too? No, it does not. It is only part of my ckeditor plus implementation.
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
No error :)
Actual result
Firefox 89 (with lots of detail steps) throws:
Uncaught TypeError: b is null
. FF 90 saysUncaught TypeError: can't access property "isInline", b is null
in updateAriaAttributesOnEditable function.It does not seem to harm anything essential having this TypeError.
Chromium Version 93 does not have this issue.
if I change
b.isInline()
into
(b?b.isInline():null)
asthe error is gone and all seems to work well.
I can't say where this error originates from.
This is my custom config:
https://github.com/ophian/additional_plugins/blob/master/serendipity_event_ckeditor/cke_config.js
Other details
If someone with more insight could lead me on this, I would be happy. Maybe this null check in ckeditor is officially a need or not, or how to rewrite my configuration to not have this error thrown. Thank you!
The text was updated successfully, but these errors were encountered: