Skip to content

Commit

Permalink
Merge branch 't/9622'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Nov 19, 2012
2 parents f24909c + cf03964 commit 2604da7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions plugins/sourcearea/plugin.js
Expand Up @@ -80,6 +80,16 @@
editor.on( 'mode', function() {
editor.getCommand( 'source' ).setState( editor.mode == 'source' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
});

function onResize() {
// Holder rectange size is stretched by textarea,
// so hide it just for a moment.
this.hide();
this.setStyle( 'height', this.getParent().$.clientHeight + 'px' );
this.setStyle( 'width', this.getParent().$.clientWidth + 'px' );
// When we have proper holder size, show textarea again.
this.show();
}
}
});

Expand Down Expand Up @@ -112,16 +122,6 @@
}
}
});

function onResize() {
// Holder rectange size is stretched by textarea,
// so hide it just for a moment.
this.hide();
this.setStyle( 'height', this.getParent().$.clientHeight + 'px' );
this.setStyle( 'width', this.getParent().$.clientWidth + 'px' );
// When we have proper holder size, show textarea again.
this.show();
}
})();

CKEDITOR.plugins.sourcearea = {
Expand Down

0 comments on commit 2604da7

Please sign in to comment.