Ticket #3642: 3642.patch

File 3642.patch, 2.0 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/dialogui/plugin.js

     
    12171217                                                if ( CKEDITOR.env.isCustomDomain() )
    12181218                                                        frameDocument.$.domain = document.domain;
    12191219
     1220                                                var size = '';
     1221                                                if ( elementDefinition.size )
     1222                                                        size = elementDefinition.size - ( CKEDITOR.env.ie  ? 7 : 0 );   // "Browse" button is bigger in IE.
     1223
    12201224                                                frameDocument.$.write( [ '<html><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">',
    12211225                                                                '<form enctype="multipart/form-data" method="POST" action="',
    12221226                                                                CKEDITOR.tools.htmlEncode( elementDefinition.action ),
     
    12241228                                                                '<input type="file" name="',
    12251229                                                                CKEDITOR.tools.htmlEncode( elementDefinition.id || 'cke_upload' ),
    12261230                                                                '" size="',
    1227                                                                 CKEDITOR.tools.htmlEncode( elementDefinition.size || '' ),
     1231                                                                CKEDITOR.tools.htmlEncode( size > 0 ? size : "" ),
    12281232                                                                '" />',
    12291233                                                                '</form>',
    12301234                                                                '</body></html>' ].join( '' ) );
  • _source/plugins/image/dialogs/image.js

     
    975975                                                        id : 'upload',
    976976                                                        label : editor.lang.image.btnUpload,
    977977                                                        action : editor.config.image_uploadAction,
     978                                                        style: 'height:40px',
    978979                                                        size : 38
    979980                                                },
    980981                                                {
  • _source/plugins/link/dialogs/link.js

     
    822822                                                id : 'upload',
    823823                                                label : editor.lang.common.upload,
    824824                                                action : editor.config.linkUploadAction,
     825                                                style: 'height:40px',
    825826                                                size : 38
    826827                                        },
    827828                                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy