Opened 16 years ago
Last modified 12 years ago
#1349 closed Bug
Mozilla style="-moz-style: -moz-initial" — at Version 6
Reported by: | Scott McNaught | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | FCKeditor 2.4.3 |
Keywords: | HasPatch | Cc: |
Description (last modified by )
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
Change History (7)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Roar - it did it again....
I have attached a file with the code in it.
comment:3 Changed 16 years ago by
Component: | UI : Source View → General |
---|---|
Keywords: | -moz-initial removed |
Milestone: | FCKeditor 2.5 |
comment:4 Changed 16 years ago by
Version: | SVN → FCKeditor 2.4.3 |
---|
This is another variant of https://sourceforge.net/tracker/index.php?func=detail&aid=1347762&group_id=75348&atid=543653 and #460
comment:5 Changed 16 years ago by
Keywords: | HasPatch added |
---|
comment:6 Changed 16 years ago by
Description: | modified (diff) |
---|
Apologies - wiki formatting messed up my regular expression...
sHTML = sHTML.replace(/\s*-moz-[ :]+: -moz-initial\s*;/g, );
Remove the spaces between "" and ":"