Opened 9 years ago
Closed 9 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: |
Description
I am from Oracle Corporation and our customers are facing below issue:
Steps to reproduce
- Click on 'Table' button in the CKEditor.
- Enter caption as 'Test' and click OK.
- Left align the Caption 'Test' by clicking 'Alien Left' button.
- 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">
test
</caption>
Actual result
<caption>
<div style="text-align:left">test</div>
</caption>
Other details (browser, OS, CKEditor version, installed plugins)
Change History (1)
comment:1 Changed 9 years ago by
Keywords: | Oracle added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Inserted element depends on enter mode if it's
ENTER_DIV
it will insert adiv
element. If it has default value it will insert ap
.Now,
caption
containing eitherdiv
orp
actually is a valid markup, and does not break HTML validation, so current solution is fine.