#2856: Inches and Centimetres
---------------------+------------------------------------------------------
 Reporter:  ajos1    |       Owner:                 
     Type:  Bug      |      Status:  new            
 Priority:  Normal   |   Milestone:  FCKeditor 2.6.5
Component:  General  |     Version:  FCKeditor 2.6.4
 Keywords:           |  
---------------------+------------------------------------------------------
 We still have people that work in Inches and NOT Centimetres. (Do not tell
 me off... I am trying to change them).

 In "fckeditor/editor/dialog/fck_paste.html" (CleanWord) you have:

 ----------
 // Remove margin styles.
 html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '' ) ;
 html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"" ) ;

 html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '' ) ;
 html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"" ) ;
 ----------

 You might want to change to:

 ----------
 // Remove margin styles.
 html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '' ) ;
 html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"" ) ;

 html = html.replace( /\s*MARGIN: 0in 0in 0pt\s*;/gi, '' ) ;
 html = html.replace( /\s*MARGIN: 0in 0in 0pt\s*"/gi, "\"" ) ;

 html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '' ) ;
 html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"" ) ;

 html = html.replace( /\s*TEXT-INDENT: 0in\s*;/gi, '' ) ;
 html = html.replace( /\s*TEXT-INDENT: 0in\s*"/gi, "\"" ) ;
 ----------

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2856>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to