Ticket #3548: 3548.patch

File 3548.patch, 2.1 KB (added by Martin Kou, 15 years ago)
  • _source/plugins/panel/plugin.js

     
    7777
    7878                output.push(
    7979                        '<div class="', editor.skinClass ,'"' +
     80                                ' lang="', editor.langCode, '"' +
    8081                                ' style="z-index:' + ( editor.config.baseFloatZIndex + 1 ) + '">' +
    8182                                '<div' +
    8283                                        ' id=', id,
     
    130131                                        parentDiv = iframe.getParent(),
    131132                                        dir = parentDiv.getAttribute( 'dir' ),
    132133                                        className = parentDiv.getParent().getAttribute( 'class' ),
     134                                        langCode = parentDiv.getParent().getAttribute( 'lang' ),
    133135                                        doc = iframe.getFrameDocument();
    134136
    135137                                // Initialize the IFRAME document body.
     
    141143
    142144                                doc.$.write(
    143145                                        '<!DOCTYPE html>' +
    144                                         '<html dir="' + dir + '" class="' + className + '_container">' +
     146                                        '<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' +
    145147                                                '<head>' +
    146148                                                        '<style>.' + className + '_container{visibility:hidden}</style>' +
    147149                                                '</head>' +
  • _source/themes/default/theme.js

     
    5353                                        ' class="', editor.skinClass, '"' +
    5454                                        ' dir="', editor.lang.dir, '"' +
    5555                                        ' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' +
     56                                        ' lang="', editor.langCode, '"' +
    5657                                        ' tabindex="' + tabIndex + '">' +
    5758                                '<span class="' , CKEDITOR.env.cssClass, ' cke_', editor.lang.dir, '">' +
    5859                                        '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" style="width:', width, '"><tbody>' +
     
    9394
    9495                        var element = CKEDITOR.dom.element.createFromHtml( [
    9596                                        '<div class="cke_skin_', editor.skinName,
    96                                                 '" dir="', editor.lang.dir, '">' +
     97                                                '" dir="', editor.lang.dir, '"' +
     98                                                ' lang="', editor.langCode, '"' +
     99                                                '>' +
    97100
    98101                                                '<div class="cke_dialog', ' ' + CKEDITOR.env.cssClass,
    99102                                                        ' cke_', editor.lang.dir, '" style="position:absolute">' +
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy