Opened 17 years ago

Last modified 14 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 17 years ago by Martin Kou

Reporter: changed from Martin Kou to anonymous

oops - the sample attributes should read:

<Attribute name="class" value="BoldRed" />

instead of

<Attribute name="style" value="font-weight: bold;
color: Red;" />

Moved from SF. Original poster: Anonymous

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

Component: GeneralCore : Styles

comment:3 Changed 16 years ago by Frederico Caldeira Knabben

Keywords: Confirmed added
Milestone: CKEditor 3.x

Let's check the feasibility of it for CKEditor.

comment:4 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

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