Ticket #6718: 6718_2.patch

File 6718_2.patch, 1.2 KB (added by Garry Yao, 9 years ago)
  • _source/plugins/pastetext/plugin.js

     
    7777 * Whether to force all pasting operations to insert on plain text into the
    7878 * editor, loosing any formatting information possibly available in the source
    7979 * text.
     80 * <strong>Note:</strong> paste from word is not affected by this configuration.
    8081 * @name CKEDITOR.config.forcePasteAsPlainText
    8182 * @type Boolean
    8283 * @default false
  • _source/plugins/pastefromword/plugin.js

     
    2727                                exec : function()
    2828                                {
    2929                                        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 )
    3132                                        {
    3233                                                editor.on( 'dialogHide', function ( evt )
    3334                                                        {
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy