Opened 10 years ago

Closed 10 years ago

#10532 closed Bug (invalid)

Enterkey in table caption

Reported by: Satya Minnekanti Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: IBM Cc: Teresa Monahan, Irina


Enter key should NOT use paragraph as line break inside table caption.

Load the following content with enter set to paragraph mode;

<table border="1" cellpadding="1" cellspacing="1" >
    <caption>table caption</caption>

Put cursor in caption and press enter;

Expected Result: a BR line break is created;

Actual Result: Paragraphs are instead created;

This was fixed in 3.6.1 but we can reproduce this issue again in 4.x builds

Change History (2)

comment:1 Changed 10 years ago by Piotrek Koszuliński

According to HTML5 spec ( captions can contain paragraphs, so I guess that this is why enter acts this way.

I'd advice to modify DTD to not allow block elements inside caption. Is it a sufficient solution?

comment:2 Changed 10 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Here is another link that confirms captions can contain flow content -

I'd advice to modify DTD to not allow block elements inside caption.

or simply allow them to be in accordance with specification.

@satya I'm closing the ticket as I don't think we will change editor to block elements other than phrasing (inline).

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