Opened 12 years ago

Closed 12 years ago

#645 closed Bug (fixed)

[SS] Nesting block elements, invalid XHTML

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

Description (last modified by Martin Kou)

There is an unfortunate problem in the editor with nesting block elements. Using style/formate by marking text and assigning formate can lead to nesting block elements like this example:

<h2><p>Text her..</p> more text...</h2>

This is invalid XHTML and should therefore not be possible to do.

The formate assigned should be assigned to the blockelement itself, not only the marked text.

This is how it works in 1.x and should also work in 2.x.

If your marker is placed within a blockelement like a paragraph, you should be able to assign a header2- formate to the element, without having to mark up the text.


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1087549&group_id=75348&atid=543653

Change History (3)

comment:1 Changed 12 years ago by Martin Kou

Cc: Frederico Caldeira Knabben added
Reporter: changed from Martin Kou to martinkronstad@…

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


Moved from SF. Original poster: fredck

comment:2 Changed 12 years ago by Martin Kou

Description: modified (diff)

comment:3 Changed 12 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy