Ticket #6718: 6718_2.patch
File 6718_2.patch, 1.2 KB (added by , 12 years ago) |
---|
-
_source/plugins/pastetext/plugin.js
77 77 * Whether to force all pasting operations to insert on plain text into the 78 78 * editor, loosing any formatting information possibly available in the source 79 79 * text. 80 * <strong>Note:</strong> paste from word is not affected by this configuration. 80 81 * @name CKEDITOR.config.forcePasteAsPlainText 81 82 * @type Boolean 82 83 * @default false -
_source/plugins/pastefromword/plugin.js
27 27 exec : function() 28 28 { 29 29 forceFromWord = 1; 30 if ( editor.execCommand( 'paste' ) === false ) 30 if ( editor.config.forcePasteAsPlainText && ( editor.fire( 'pasteDialog' ), 1 ) // Have to override "forcePasteAsPlainText" by opening dialog (#6718). 31 || editor.execCommand( 'paste' ) === false ) 31 32 { 32 33 editor.on( 'dialogHide', function ( evt ) 33 34 {