Ticket #5728: 5728_1.patch

File 5728_1.patch, 1.4 KB (added by Tobiasz Cudnik, 14 years ago)
  • _source/plugins/dialogui/plugin.js

     
    13391339                                        var frameElement = CKEDITOR.document.getById( this._.frameId ),
    13401340                                                frameDocument = frameElement.getFrameDocument(),
    13411341                                                elementDefinition = this._.definition,
    1342                                                 buttons = this._.buttons;
     1342                                                buttons = this._.buttons,
     1343                                                langDir = this._.dialog._.editor.lang.dir,
     1344                                                langCode = this._.dialog._.editor.langCode;
    13431345
    13441346                                        function generateFormField()
    13451347                                        {
     
    13531355                                                if ( elementDefinition.size )
    13541356                                                        size = elementDefinition.size - ( CKEDITOR.env.ie  ? 7 : 0 );   // "Browse" button is bigger in IE.
    13551357
    1356                                                 frameDocument.$.write( [ '<html><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">',
    1357                                                                 '<form enctype="multipart/form-data" method="POST" action="',
     1358                                                frameDocument.$.write( [ '<html dir="' + langDir + '" lang="' + langCode + '"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">',
     1359                                                                '<form enctype="multipart/form-data" method="POST" dir="' + langDir + '" lang="' + langCode + '" action="',
    13581360                                                                CKEDITOR.tools.htmlEncode( elementDefinition.action ),
    13591361                                                                '">',
    13601362                                                                '<input type="file" name="',
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy