Ticket #5563: 5563_2.patch

File 5563_2.patch, 1.4 KB (added by Frederico Caldeira Knabben, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    427427                                                        }, 0 );
    428428                                                }
    429429
    430                                                 // IE, Opera and Safari may not support it and throw
    431                                                 // errors.
    432                                                 try { domDocument.execCommand( 'enableObjectResizing', false, !editor.config.disableObjectResizing ) ; } catch(e) {}
    433                                                 try { domDocument.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ) ; } catch(e) {}
    434 
    435430                                                domWindow       = editor.window         = new CKEDITOR.dom.window( domWindow );
    436431                                                domDocument     = editor.document       = new CKEDITOR.dom.document( domDocument );
    437432
     
    625620                                                                        editor.fire( 'dataReady' );
    626621                                                                }, 0 );
    627622
     623                                                                // IE, Opera and Safari may not support it and throw errors.
     624                                                                try { editor.document.$.execCommand( 'enableObjectResizing', false, !editor.config.disableObjectResizing ) ; } catch(e) {}
     625                                                                try { editor.document.$.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ) ; } catch(e) {}
     626
    628627                                                                /*
    629628                                                                 * IE BUG: IE might have rendered the iframe with invisible contents.
    630629                                                                 * (#3623). Push some inconsequential CSS style changes to force IE to
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy