Changes between Initial Version and Version 1 of Ticket #5342, comment 6
- Timestamp:
- May 11, 2012, 9:35:19 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5342, comment 6
initial v1 16 16 resizeEditorWebkit( event.editor ); 17 17 }); 18 19 editor.on('mode', function( event ){ 20 if ( event.editor.mode === 'source' ){ 21 var txtar = document.getElementById('cke_' + event.editor.name).getElementsByTagName('table')[0].getElementsByTagName('textarea')[0]; 22 txtar.style.display = 'block'; 23 txtar.style.height = 'inherit'; 24 }else{ 25 resizeEditorWebkit( event.editor ); 26 } 27 }); 18 28 }); 19 29 … … 26 36 } 27 37 } 28 29 38 }}} 30 39 … … 34 43 <input type="button" value="click" onclick="CKEDITOR.instances['editor2'].insertHtml('<p>myTest</p>');" /> 35 44 }}} 45 46 **Update:**[[BR]] 47 Nick Kurucz has pointed out that this workaround does not work when switching to source mode. I have added something extra - still not perfect as you can see editor resized for a second.