Styles XML file support for element="*"
|Reported by:||anonymous||Owned by:|
|Component:||Core : Styles||Version:|
I would like to suggest building support for an <any> element that will apply to any element (equivalent to a ".sample" in the stylesheet which can be applied to anything).
for people who don't know what i'm talking about take a look at /FCKeditor_2.0rc2/_docs/contents/006.html in the latest release.
So for example - instead of this:
<Styles> <Style name="Bold Red" element="span"> <Attribute name="style" value="font-weight: bold; color: Red;" /> </Style>
I would like to be able to do this:
<Styles> <Style name="Bold Red" element="*"> <Attribute name="style" value="font-weight: bold; color: Red;" /> </Style>
I think this would go a long way in helping not to confuse non power-users who will not understand that they cannot find the style "Bold Red" when they have a table cell selected for example when all they want to do is get the text Red.
Also I think when a user selects an entire paragraph, then the p tag should get the class assigned as opposed to nesting a span tag inside the p tag.
And when the user selects the same paragraph again (because it unintuitively gets unselected after applying a style) and applies a different style, the previous style should get *overwritten* instead of having the new style nested within the old one.
It makes for cleaner html and will go along way in reducing html clutter.