Js error due to null selection when viewing source via setKeystroke hotkey (patch) #3998
Labels
plugin:widget
The plugin which probably causes the issue.
regression
This issue is a regression.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Milestone
Type of report
Bug, patch widget plulgin.js
Provide detailed reproduction steps (if any)
Expected result
No error
Actual result
plugin.js:2921 Uncaught TypeError: Cannot read property '0' of null
at Repository.fixCrossContentSelection (plugin.js:2921)
at Repository.listenerFirer (event.js:144)
at Repository.CKEDITOR.event.fire (event.js:290)
at fireCheckSelection (plugin.js:2952)
Other details
Fix: line 2921: check for null in /widget plugin.js
range = ranges? ranges[ 0 ]:null;
Fix line 292: check for null in /widget plugin.us
if (!this.editor.getSelection()) return;
The text was updated successfully, but these errors were encountered: