Opened 8 years ago
Last modified 8 years ago
#16809 closed Bug
JS Error throwing in focusManager when editor instance in source mode loses focus. — at Version 8
Reported by: | Nick Willett-Jeffries | Owned by: | |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 4.7.1 |
Component: | General | Version: | 4.6.2 |
Keywords: | Chrome | Cc: | Michael Wolfenden, bbalfour@… |
Description (last modified by )
Steps to reproduce
- Visit http://nightly.ckeditor.com/17-01-19-07-07/standard/samples/
- Open browser dev tools.
- Switch Ckeditor instance on the page to Source mode.
- Click anywhere on the page outside of the editor instance.
Expected result
No js errors throw.
Actual result
Uncaught TypeError: Cannot read property '$' of undefined
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.focusManager.f (ckeditor.js:224) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.focusManager.<anonymous> (ckeditor.js:225) at ckeditor.js:26
Other details (browser, OS, CKEditor version, installed plugins)
MacOS Sierra, Chrome 55.0.2883.95. This is throwing in CKeditor 4.6.2, in addition to Nightly build.
Please also see comment:5 and comment:7 for other test cases.
Change History (8)
comment:1 Changed 8 years ago by
Keywords: | Chrome added |
---|---|
Status: | new → confirmed |
Version: | 4.7.0 (GitHub - major) → 4.6.2 |
comment:3 Changed 8 years ago by
Priority: | Normal → Must have (possibly next milestone) |
---|
comment:4 Changed 8 years ago by
Cc: | Michael Wolfenden added |
---|
comment:5 Changed 8 years ago by
Another reproduction path is to use the 'divarea' plugin:
- checkout tag 4.6.2
- open plugins/divarea/samples/divarea.html
- click inside the editing area to focus it
- click the 'Source' button
This triggers the following JS error:
Uncaught TypeError: Cannot read property '$' of undefined at CKEDITOR.focusManager.doBlur (focusmanager.js:162) at CKEDITOR.focusManager.<anonymous> (focusmanager.js:180) at tools.js:578
comment:6 Changed 8 years ago by
Cc: | bbalfour@… added |
---|
comment:7 Changed 8 years ago by
Cannot read property 'contains' of null
is thrown when tabbing through editors in sharedspace
sample. Once you focus link and leave last editor, error gets thrown:
Message: Cannot read property 'contains' of null
URL: ckeditor-dev/plugins/indent/plugin.js
Line: 366
Problem can be reproduced in Chrome Win & Mac from CKEditor 4.6.2.