Ticket #5603: plugin.js.patch

File plugin.js.patch, 1.1 KB (added by mattis, 15 years ago)
  • external/js/ckeditor/_source/plugins/pastefromword/plugin.js

     
    5454                                if ( ( mswordHtml = data[ 'html' ] )
    5555                                         && ( forceFromWord || ( /(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/ ).test( mswordHtml ) ) )
    5656                                {
    57                                         var isLazyLoad = this.loadFilterRules( function()
     57                                        var isLazyLoad = this.loadFilterRules(editor, function()
    5858                                                {
    5959                                                        // Event continuation with the original data.
    6060                                                        if ( isLazyLoad )
     
    7373                        }, this );
    7474                },
    7575
    76                 loadFilterRules : function( callback )
     76                loadFilterRules : function(editor, callback )
    7777                {
    7878
    7979                        var isLoaded = CKEDITOR.cleanWord;
     
    8383                        else
    8484                        {
    8585                                var filterFilePath = CKEDITOR.getUrl(
    86                                                 CKEDITOR.config.pasteFromWordCleanupFile
     86                                                editor.config.pasteFromWordCleanupFile
    8787                                                || ( this.path + 'filter/default.js' ) );
    8888
    8989                                // Load with busy indicator.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy