Changes between Initial Version and Version 1 of Ticket #5342, comment 6


Ignore:
Timestamp:
May 11, 2012, 9:35:19 AM (8 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5342, comment 6

    initial v1  
    1616                resizeEditorWebkit( event.editor );                                                             
    1717        });
     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        });
    1828});
    1929                                                       
     
    2636        }
    2737}
    28 
    2938}}}
    3039
     
    3443<input type="button" value="click" onclick="CKEDITOR.instances['editor2'].insertHtml('<p>myTest</p>');" />
    3544}}}
     45
     46**Update:**[[BR]]
     47Nick 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.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy