Opened 16 years ago

Closed 12 years ago

#1349 closed Bug (wontfix)

Mozilla style="-moz-style: -moz-initial"

Reported by: Scott McNaught Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.4.3
Keywords: HasPatch Cc:

Description (last modified by Frederico Caldeira Knabben)

Sometimes mozilla can pollute html with -moz-xxx: moz-initial styles.

This breaks w3c style validation, and is unnecessary and annoying.

Can I suggest that when the editor switches to source, a regexp replace is ran that removes these styles.

Something like this would do the trick...

if(FCKBrowserInfo.IsGeckoLike)
{
	sHTML = sHTML.replace( /\s*-moz-[^:]+: -moz-initial\s*;/g, '' ) ;
}

Cheers

Scott

Attachments (1)

regexp.txt (112 bytes) - added by Scott McNaught 16 years ago.
Regular expression (with no wiki formatting)

Download all attachments as: .zip

Change History (8)

comment:1 Changed 16 years ago by Scott McNaught

Apologies - wiki formatting messed up my regular expression...

sHTML = sHTML.replace(/\s*-moz-[ :]+: -moz-initial\s*;/g, );

Remove the spaces between "" and ":"

comment:2 Changed 16 years ago by Scott McNaught

Roar - it did it again....

I have attached a file with the code in it.

Changed 16 years ago by Scott McNaught

Attachment: regexp.txt added

Regular expression (with no wiki formatting)

comment:3 Changed 16 years ago by Frederico Caldeira Knabben

Component: UI : Source ViewGeneral
Keywords: -moz-initial removed
Milestone: FCKeditor 2.5

comment:4 Changed 16 years ago by Alfonso Martínez de Lizarrondo

Version: SVNFCKeditor 2.4.3

comment:5 Changed 16 years ago by Wojciech Olchawa

Keywords: HasPatch added

comment:6 Changed 16 years ago by Frederico Caldeira Knabben

Description: modified (diff)

comment:7 Changed 12 years ago by Jakub Ś

Resolution: wontfix
Status: newclosed

FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x, that is a fully mature and far superior product. We recommend you upgrade as soon as possible since this issue is no longer a problem in current code base.

NOTE: I haven't observed this behaviour in latest Firefox 12 and FCKeditor 2.6.6 as well.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy