Skip to content

Commit

Permalink
We should look for elements only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Sep 5, 2014
1 parent 9555c19 commit baa5394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/creators/themedui.js
Expand Up @@ -274,7 +274,7 @@ CKEDITOR.replaceClass = 'ckeditor';

if ( resizeInner ) {
outer = this.container.getFirst( function( node ) {
return node.hasClass( 'cke_inner' );
return node.type == CKEDITOR.NODE_ELEMENT && node.hasClass( 'cke_inner' );
} );
} else {
outer = container;
Expand Down
2 changes: 1 addition & 1 deletion plugins/maximize/plugin.js
Expand Up @@ -130,7 +130,7 @@
editorFocus: false,
exec: function() {
var container = editor.container.getFirst( function( node ) {
return node.hasClass( 'cke_inner' );
return node.type == CKEDITOR.NODE_ELEMENT && node.hasClass( 'cke_inner' );
} );
var contents = editor.ui.space( 'contents' );

Expand Down

0 comments on commit baa5394

Please sign in to comment.