55 | | if ( !CKEDITOR.env.ie8Compat ) |
56 | | { |
57 | | onResize = function() |
58 | | { |
59 | | // Holder rectange size is stretched by textarea, |
60 | | // so hide it just for a moment. |
61 | | textarea.hide(); |
62 | | textarea.setStyle( 'height', holderElement.$.clientHeight + 'px' ); |
63 | | // When we have proper holder size, show textarea again. |
64 | | textarea.show(); |
65 | | }; |
66 | | editor.on( 'resize', onResize ); |
67 | | editor.on( 'afterCommandExec', function( event ) |
68 | | { |
69 | | if ( event.data.name == 'toolbarCollapse' ) |
| 56 | onResize = function() |
| 57 | { |
| 58 | // Holder rectange size is stretched by textarea, |
| 59 | // so hide it just for a moment. |
| 60 | textarea.hide(); |
| 61 | textarea.setStyle( 'height', holderElement.$.clientHeight + 'px' ); |
| 62 | textarea.setStyle( 'width', holderElement.$.clientWidth + 'px' ); |
| 63 | // When we have proper holder size, show textarea again. |
| 64 | textarea.show(); |
| 65 | }; |
| 66 | editor.on( 'resize', onResize ); |
| 67 | editor.on( 'afterCommandExec', function( event ) |
| 68 | { |
| 69 | if ( event.data.name == 'toolbarCollapse' ) |