Ticket #5553: 5553_2.patch

File 5553_2.patch, 1.2 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/clipboard/dialogs/paste.js

     
    6060                        // inserted iframe editable. (#3366)
    6161                        this.parts.dialog.$.offsetHeight;
    6262
    63                         var htmlToLoad = '<!doctype html><html><head><style>body { margin: 3px; height: 95%; } </style></head><body>' +
    64                                                          '<script id="cke_actscrpt" type="text/javascript">' +
    65                                                          'window.parent.CKEDITOR.tools.callFunction( ' + CKEDITOR.tools.addFunction( onPasteFrameLoad, this ) + ', this );' +
    66                                                          '</script></body></html>';
     63                        var htmlToLoad =
     64                                '<!doctype html><html dir="' + editor.config.contentsLangDirection + '"' +
     65                                ' lang="' + ( editor.config.contentsLanguage || editor.langCode ) + '">' +
     66                                        '<head><style>body { margin: 3px; height: 95%; } </style></head><body>' +
     67                                        '<script id="cke_actscrpt" type="text/javascript">' +
     68                                        'window.parent.CKEDITOR.tools.callFunction( ' + CKEDITOR.tools.addFunction( onPasteFrameLoad, this ) + ', this );' +
     69                                        '</script></body>' +
     70                                '</html>';
    6771
    6872                        var iframe = CKEDITOR.dom.element.createFromHtml(
    6973                                                '<iframe' +
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy