Skip to content
Permalink
Browse files

Merge branch 't/9622'

  • Loading branch information...
Reinmar committed Nov 19, 2012
2 parents f24909c + cf03964 commit 2604da7b65610818328646bd467f56d22a1c8813
Showing with 10 additions and 10 deletions.
  1. +10 −10 plugins/sourcearea/plugin.js
@@ -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();
}
}
});

@@ -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 = {

0 comments on commit 2604da7

Please sign in to comment.
You can’t perform that action at this time.