Skip to content

Commit 978a9a5

Browse files
committed
Revert "Check if node is element in widget.getByElement."
This method is supposed to be used with elements. If not an element was passed it means that the code outside it is incorrect and it should be checked and fixed. This reverts commit ca144d2.
1 parent bddc6d0 commit 978a9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/widget/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
}
451451

452452
return function( element, checkWrapperOnly ) {
453-
if ( !element || element.type != CKEDITOR.NODE_ELEMENT )
453+
if ( !element )
454454
return null;
455455

456456
var id = getWidgetId( element );

0 commit comments

Comments
 (0)