Opened 8 years ago

Closed 8 years ago

#14355 closed Bug (wontfix)

CKEditor adds div tag in between caption tag of table when left aligned.

Reported by: Murthy Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.6
Keywords: Oracle Cc:


I am from Oracle Corporation and our customers are facing below issue:

Steps to reproduce

  1. Click on 'Table' button in the CKEditor.
  2. Enter caption as 'Test' and click OK.
  3. Left align the Caption 'Test' by clicking 'Alien Left' button.
  4. Go to source mode and check the content.

a 'Div' tag is added between caption tag. This is not in standard with HTML. When this html content is validated an warning is generated that "Warning: missing </caption> before <div> ".

To adhere to html standards on Left align click, CKEditor should add style attribute to caption tag rather then adding div tag.

Expected result

<caption style="text-align:left">



Actual result


<div style="text-align:left">test</div>


Other details (browser, OS, CKEditor version, installed plugins)

Change History (1)

comment:1 Changed 8 years ago by Marek Lewandowski

Keywords: Oracle added
Resolution: wontfix
Status: newclosed

Inserted element depends on enter mode if it's ENTER_DIV it will insert a div element. If it has default value it will insert a p.

Now, caption containing either div or p actually is a valid markup, and does not break HTML validation, so current solution is fine.

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