Ticket #7004: 7004.patch

File 7004.patch, 609 bytes (added by Alfonso Martínez de Lizarrondo, 12 years ago)

Proposed patch

  • _source/core/plugins.js

     
    7979CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries )
    8080{
    8181        var plugin = this.get( pluginName ),
    82                 pluginLang = plugin.lang || ( plugin.lang = {} );
     82                pluginLang = plugin.lang || ( plugin.lang = [] );
    8383
     84        if ( CKEDITOR.tools.indexOf( pluginLang, languageCode ) == -1 )
     85                pluginLang.push( languageCode );
     86
    8487        pluginLang[ languageCode ] = languageEntries;
    8588};
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy