Ticket #5045: 5045_4.patch

File 5045_4.patch, 2.7 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Revised patch

  • _source/core/editor.js

     
    383383                                throw '[CKEDITOR.editor] The instance "' + this.name + '" already exists.';
    384384
    385385                        /**
     386                         * A unique random string assigned to each editor instance in the page.
     387                         * @name CKEDITOR.editor.prototype.id
     388                         * @type String
     389                         */
     390                        this.id = 'cke_instance_' + CKEDITOR.tools.getNextNumber();
     391
     392                        /**
    386393                         * The configurations for this editor instance. It inherits all
    387394                         * settings defined in (@link CKEDITOR.config}, combined with settings
    388395                         * loaded from custom configuration files and those defined inline in
  • _source/skins/kama/skin.js

     
    147147                                {
    148148                                        var cssContent,
    149149                                                uiStyle = getStylesheet( CKEDITOR.document ),
    150                                                 cssId = '.cke_editor_' + CKEDITOR.tools.escapeCssSelector( editor.name );
     150                                                cssId = '.' + editor.id;
    151151
    152152                                        var cssSelectors =
    153153                                                [
  • _source/themes/default/theme.js

     
    2222                        // Creates an HTML structure that reproduces the editor class hierarchy.
    2323                        var html =
    2424                                '<span class="cke_shared">' +
    25                                 '<span class="' + editor.skinClass + ' cke_editor_' + editor.name + '">' +
     25                                '<span class="' + editor.skinClass + ' ' + editor.id + ' cke_editor_' + editor.name + '">' +
    2626                                '<span class="' + CKEDITOR.env.cssClass + '">' +
    2727                                '<span class="cke_wrapper cke_' + editor.lang.dir + '">' +
    2828                                '<span class="cke_editor">' +
     
    114114                                '<span' +
    115115                                        ' id="cke_', name, '"' +
    116116                                        ' onmousedown="return false;"' +
    117                                         ' class="', editor.skinClass, ' cke_editor_', name, '"' +
     117                                        ' class="', editor.skinClass, ' ', editor.id, ' cke_editor_', name, '"' +
    118118                                        ' dir="', editor.lang.dir, '"' +
    119119                                        ' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' +
    120120                                        ' lang="', editor.langCode, '"' +
     
    167167                        var baseIdNumber = CKEDITOR.tools.getNextNumber();
    168168
    169169                        var element = CKEDITOR.dom.element.createFromHtml( [
    170                                         '<div class="cke_editor_' + editor.name.replace('.', '\\.') + '_dialog cke_skin_', editor.skinName,
     170                                        '<div class="', editor.id, '_dialog cke_editor_', editor.name.replace('.', '\\.'), '_dialog cke_skin_', editor.skinName,
    171171                                                '" dir="', editor.lang.dir, '"' +
    172172                                                ' lang="', editor.langCode, '"' +
    173173                                                ' role="dialog"' +
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy