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 )
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.