Opened 13 years ago

Last modified 12 years ago

#8893 closed Bug

Error in documentation or bug in PasteFromWordCleanupFile option — at Version 1

Reported by: Michał Owned by:
Priority: Normal Milestone: CKEditor 4.0.1
Component: Core : Pasting Version: 3.1
Keywords: HasTest Cc:

Description (last modified by Jakub Ś)

According to: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.pasteFromWordCleanupFile it should works when I add

CKEDITOR.config.pasteFromWordCleanupFile = 'custom';

to config.js file, but it doesn't work. This works fine:

CKEDITOR.config.pasteFromWordCleanupFile = 'plugins/pastefromword/filter/custom.js';

Proposed fix to _source/plugins/pastefromword/plugin.js line 104 is change

var filterFilePath = CKEDITOR.getUrl( CKEDITOR.config.pasteFromWordCleanupFile || ( this.path + 'filter/default.js' ) );

to something like:

var filterFilePath = CKEDITOR.getUrl((this.path+CKEDITOR.config.pasteFromWordCleanupFile+'.js') || ( this.path + 'filter/default.js' ) );

or fix description in Documentation.

Change History (1)

comment:1 Changed 13 years ago by Jakub Ś

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy