Opened 12 years ago

Closed 12 years ago

#222 closed Bug (fixed)

extraneous tags are left when selecting styles

Reported by: gregsmith154 Owned by: Frederico Caldeira Knabben
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: Core : Styles Version: FCKeditor 2.4
Keywords: Confirmed Cc:

Description

When applying a predefined style from the dropdown box it leaves behind or adds tags that make the code invalid.

Say I have <h1>This is a heading</h1> and I want to change it to heading style_2.

I highlight 'This is a heading' and select 'heading style_2' from the dropdown box.

I expect to get <h1 style="style_2">This is a heading</h1>.

What I actually get is <h1><h1 style="style_2">This is a heading</h1></h1>

The same seems to happen with other tags so if I start with <p>This is a heading</p> I get <p><h1 style="style_2">This is a heading</h1></p> which obviously isn't valid.

If I go to source view and back again it will sometimes change to: <h1></h1> <h1 style="style_2">This is a heading</h1> which isn't quite as bad but still not ideal.

I've already taken out font sizing and font face from the user as this used depreciated tags and left an invalid mess of code behind. It'd be great to have a time when all code from the editor is always going to remain 100% valid. Thanks for supporting this mostly great project.

Change History (5)

comment:1 Changed 12 years ago by Frederico Caldeira Knabben

Component: GeneralCore : Styles
Keywords: Confirmed added; styles tags removed
Milestone: FCKeditor 2.5
Priority: HighNormal

This problem will most probably be fixed with the new style system to be developed for version 2.5.

comment:2 Changed 12 years ago by gregsmith

Could you possibly give us more details on the new style system? Also is there any ETA on the new release?

comment:3 Changed 12 years ago by gregsmith

Any ETA on the new style system release?

comment:4 Changed 12 years ago by Frederico Caldeira Knabben

Owner: set to Frederico Caldeira Knabben
Status: newassigned

comment:5 Changed 12 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: assignedclosed

Fixed with [774].

Click here for more info about our SVN system.

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