Opened 16 years ago

Closed 16 years ago

#653 closed Bug (fixed)

[SS] Changing a Style adds a div instead of replacing it

Reported by: dalevink@… Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: Core : Styles Version:
Keywords: SF Cc: Frederico Caldeira Knabben, m4ling@…


In version 2.0 RCS every time a style is changed it adds the style in the form of a DIV tag.

If you have a look at the current demo site: and select some text, then change the style from "Title" to "Code" back and forth a few times and then go into Source and you'll see the DIV tags just keep adding up.

Is there a quick fix for this?

Bug in Version: FCKeditor 2.0 RC3

Moved from SF:

Change History (3)

comment:1 Changed 16 years ago by Martin Kou

Reporter: changed from Martin Kou to dalevink@…

comment:2 Changed 16 years ago by Martin Kou

Cc: Frederico Caldeira Knabben m4ling@… added

I'm marking this bug to [SS] (Style Selector).

Moved from SF. Original poster: fredck

You can remove a style by re-applying it - ie select text, apply "Title", select the exact same text, apply "Title" again and it will get removed.

I agree that this is not really very intuitive for users and it should work like Word or any other text editor works.

A while back I tried to modify the css handling of fckeditor 1.6 (before 2.0 had any style functionality) but didn't have time to continue to develop it any further. You can check it out @ (IE only).

Any developers out there that've done something similar for 2.0?

Moved from SF. Original poster: m4ling

comment:3 Changed 16 years ago by Frederico Caldeira Knabben

Component: GeneralCore : Styles
Milestone: FCKeditor 2.5
Resolution: fixed
Status: newclosed

Fixed with [774]. Click here for more info about our SVN system.

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