Ticket #4208: 4208_2.patch

File 4208_2.patch, 1.4 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    820820                                                                }, 0 );
    821821
    822822                                                                // IE, Opera and Safari may not support it and throw errors.
    823                                                                 try { editor.document.$.execCommand( 'enableObjectResizing', false, !editor.config.disableObjectResizing ) ; } catch(e) {}
    824                                                                 try { editor.document.$.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ) ; } catch(e) {}
     823                                                                try { editor.document.$.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ); } catch(e) {}
     824                                                                if ( editor.config.disableObjectResizing )
     825                                                                {
     826                                                                        try
     827                                                                        {
     828                                                                                editor.document.$.execCommand( 'enableObjectResizing', false, false );
     829                                                                        }
     830                                                                        catch(e)
     831                                                                        {
     832                                                                                // For browsers in which the above method failed, we can cancel the resizing on the fly (#4208)
     833                                                                                editor.document.getBody().on( CKEDITOR.env.ie ? 'resizestart' : 'resize', function( evt )
     834                                                                                {
     835                                                                                        evt.data.preventDefault();
     836                                                                                });
     837                                                                        }
     838                                                                }
    825839
    826840                                                                /*
    827841                                                                 * IE BUG: IE might have rendered the iframe with invisible contents.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy