Skip to content

Commit

Permalink
Merge ifs.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this committed Feb 26, 2019
1 parent 30705ff commit 79a66e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/widget/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,8 @@

function findNonEditableParent( node ) {
while ( node ) {
if ( node.type == CKEDITOR.NODE_ELEMENT ) {
if ( node.getAttribute( 'contentEditable' ) == 'false' && !node.data( 'cke-editable' ) ) {
return node;
}
if ( node.type == CKEDITOR.NODE_ELEMENT && node.getAttribute( 'contentEditable' ) == 'false' && !node.data( 'cke-editable' ) ) {
return node;
}
node = node.getParent();
}
Expand Down

0 comments on commit 79a66e6

Please sign in to comment.