Opened 18 years ago
Last modified 15 years ago
#608 confirmed New Feature
Styles XML file support for element="*"
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Styles | Version: | |
Keywords: | SF | Cc: |
Description
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.
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1091613&group_id=75348&atid=543656
Change History (4)
comment:1 Changed 18 years ago by
Reporter: | changed from Martin Kou to anonymous |
---|
comment:2 Changed 17 years ago by
Component: | General → Core : Styles |
---|
comment:3 Changed 16 years ago by
Keywords: | Confirmed added |
---|---|
Milestone: | → CKEditor 3.x |
Let's check the feasibility of it for CKEditor.
oops - the sample attributes should read:
instead of
Moved from SF. Original poster: Anonymous