Ticket #3959: 3959_2.patch

File 3959_2.patch, 1.5 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/pastefromword/dialogs/pastefromword.js

     
    2323                                + '</script><style>body { margin: 3px; height: 95%; } </style><body></body>',
    2424                cleanWord : function( editor, html, ignoreFont, removeStyles )
    2525                {
     26                        // Remove comments [SF BUG-1481861].
     27                        html = html.replace(/<\!--[\s\S]*?-->/g, '' ) ;
     28
    2629                        html = html.replace(/<o:p>\s*<\/o:p>/g, '') ;
    2730                        html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;') ;
    2831
     
    8891                        // Remove Tags with XML namespace declarations: <o:p><\/o:p>
    8992                        html = html.replace(/<\/?\w+:[^>]*>/gi, '' ) ;
    9093
    91                         // Remove comments [SF BUG-1481861].
    92                         html = html.replace(/<\!--[\s\S]*?-->/g, '' ) ;
    93 
    9494                        html = html.replace( /<(U|I|STRIKE)>&nbsp;<\/\1>/g, '&nbsp;' ) ;
    9595
    9696                        html = html.replace( /<H\d>\s*<\/H\d>/gi, '' ) ;
  • CHANGES.html

     
    138138                        <li><a href="http://dev.fckeditor.net/ticket/3837">#3837</a> : Brazilian Portuguese.</li>
    139139                        </ul>
    140140                </li>
     141                <li><a href="http://dev.fckeditor.net/ticket/3959">#3959</a> : Pasting styled text from word result in content lost.</li>
    141142        </ul>
    142143        <h3>
    143144                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy