#2291: [FF3] simple copy & paste from Word document - extra code not stripped
------------------------+---------------------------------------------------
Reporter: icedblind | Owner:
Type: Bug | Status: reopened
Priority: Normal | Milestone:
Component: General | Version: FCKeditor 2.6.1
Resolution: | Keywords:
------------------------+---------------------------------------------------
Changes (by icedblind):
* status: closed => reopened
* resolution: invalid =>
Comment:
fredck, i've taken a look at fckeditor/editor/dialog/fck_paste.html code,
inside CleanWord function and i propose to modify some code - ''if you all
don't see any problem, i'm not a smart js programmer!''
'''fckeditor/editor/dialog/fck_paste.html - line 248'''
actual
{{{
html = html.replace(/<\!--.*?-->/g, '' ) ;
}}}
new lines
{{{
html = html.replace( /<w:[^>]*>(.*?)<\/w:[^>]*>/gi, '' ) ;
html = html.replace( /<meta[^>]*>/gi, '' ) ;
html = html.replace( /<link[^>]*>/gi, '' ) ;
html = html.replace( /<style[^>]*>([\w|\W|\n]*?)<\/style>/gim, '' ) ;
html = html.replace( /<\!--([\w|\W|\n]*?)-->/gm, '' ) ;
}}}
This at least strips away the lines that i've reported in FF3, and also
extends to multiplelines the comment removal using the "paste from word"
button.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2291#comment:3>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac