Ticket #608 (confirmed New Feature)

Opened 8 years ago

Last modified 4 years ago

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

comment:1 Changed 8 years ago by martinkou

  • Reporter changed from martinkou 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 7 years ago by alfonsoml

  • Component changed from General to Core : Styles

comment:3 Changed 6 years ago by fredck

  • Keywords Confirmed added
  • Milestone set to CKEditor 3.x

Let's check the feasibility of it for CKEditor.

comment:4 Changed 4 years ago by fredck

  • Milestone CKEditor 3.x deleted

Milestone CKEditor 3.x deleted

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy