Opened 17 years ago

Closed 17 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@…

Description

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: http://www.fckeditor.net/demo/default.html 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:
http://sourceforge.net/tracker/index.php?func=detail&aid=1177384&group_id=75348&atid=543653

Change History (3)

comment:1 Changed 17 years ago by Martin Kou

Reporter: changed from Martin Kou to dalevink@…

comment:2 Changed 17 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 @ http://mark.wmakers.com/wizard/fckeditor/_test/test.html (IE only).

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


Moved from SF. Original poster: m4ling

comment:3 Changed 17 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