Opened 8 years ago
Closed 8 years ago
#14809 closed Bug (fixed)
Divarea: Calling insertElement() in Edge before clicking into editor gives error
Reported by: | Mark Wade | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.2 |
Keywords: | Edge | Cc: |
Description (last modified by )
Steps to reproduce
- Download the attached file, and edit line 6 to point to correct CKEditor path which has the "Div Editing Area" plugin enabled
- Load it in the latest version of Edge
- Click the "Click Me" button.
Expected result
"Hello, World!" appears inside the editor
Actual result
The contents of the editor do not change, and the following error is logged to the console:
SCRIPT5007: Unable to get property 'checkReadOnly' of undefined or null reference
Other details (browser, OS, CKEditor version, installed plugins)
Seems to happen when calling insertElement() before the user has clicked into the editor (this is common in our usage, as we have a "Quote" button next to all posts, which initiates an editor and then inserts the quoted post into it).
Happens in the latest version of Edge (38) but doesn't happen in older versions (14 is the latest available on Browser Stack and it doesn't happen there - but it seems to be the most recent update as this issue has only recently been reported to us) or in any other browser.
Does not happen unless the Div Editing Area plugin is present.
Bug report in our system: https://invisionpower.com/4bugtrack/active-reports/41132-edge-wont-quote-a-post-r12195/
Attachments (1)
Change History (5)
comment:1 Changed 8 years ago by
Description: | modified (diff) |
---|---|
Keywords: | Edge added |
Status: | new → confirmed |
Summary: | Calling insertElement() in Edge before clicking into editor gives error → Divarea: Calling insertElement() in Edge before clicking into editor gives error |
Version: | 4.5.10 (GitHub - master) → 4.5.2 |
Changed 8 years ago by
Attachment: | ckeditor-test.html added |
---|
comment:2 Changed 8 years ago by
comment:3 Changed 8 years ago by
I did a small investigation as I was not able to reproduce this issue in CKEditor 4.5.11. It seems this error was fixed in this release. I believe it was fixed by this patch - #14825, as we switched from using setActive
to focus
method while focusing editor for the newest Edge.
@j.swiderski I would ask you to confirm this before we take further steps regarding this issue.
comment:4 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
I could not reproduce this issue as well. I'm marking it as fixed.
Your sample doesn't include divarea plugin. I needed to update it.
Support for Edge was first introduced in CKEditor 4.5.2 so this is the version I'm setting as a starting point although problem occurs before that version as well.
Since this issue doesn't happen once you click into editor, I thought that below 'if' could solve the problem but error is thrown despite putting focus into editor.