Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
EZP-28130: Console error when moving empty richText field (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored and Łukasz Serwatka committed Oct 26, 2017
1 parent 1630e23 commit cf9bb64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/public/js/alloyeditor/plugins/caret.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ YUI.add('ez-alloyeditor-plugin-caret', function (Y) {
function findCaretElement(element) {
var child = element.getChild(0);

if ( child.type !== CKEDITOR.NODE_TEXT ) {
if ( child && child.type !== CKEDITOR.NODE_TEXT ) {
return findCaretElement(child);
}
return element;
Expand Down

0 comments on commit cf9bb64

Please sign in to comment.