Skip to content

Adding footnote to table inside of an ins tag destroys table #34

@awptimus

Description

@awptimus

If a table exists inside of an ins adding a footnote inside of a cell causes sibling tds and trs to be removed.

before footnote is added
<ins class="ice-ins ice-cts-1" data-cid="15" data-userid="" data-username="" data-changedata="" data-time="1544727161352" data-last-change-time="1544727439116"><table border="1" cellspacing="0" cellpadding="1" style="width:500px;" class="cke-table"><tbody><tr><td>test<br></td><td><br></td></tr><tr><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td></tr></tbody></table></ins>

after footnote is added
<ins class="ice-ins ice-cts-1" data-cid="15" data-userid="mkolczynski" data-username="Michael Kolczynski" data-changedata="" data-time="1544727161352" data-last-change-time="1544727439116"><table border="1" cellspacing="0" cellpadding="1" style="width:500px;" class="cke-table"><tbody><tr><td>test</td></tr></tbody></table></ins>

a table is then added after with the footnote superscript
<table border="1" cellspacing="0" cellpadding="1" style="width:500px" class="cke-table"><tbody><tr><td><ins data-cid="15" data-userid="" data-username="" data-changedata="" data-time="1544727161352" data-last-change-time="1544727439116" class="ice-cts-1 ice-ins"><span tabindex="-1" contenteditable="false" data-cke-widget-wrapper="1" data-cke-filter="off" class="cke_widget_wrapper cke_widget_inline" data-cke-display-name="sup" data-cke-widget-id="20"><sup data-footnote-id="9lx4u" data-cke-widget-data="%7B%22classes%22%3Anull%7D" data-cke-widget-upcasted="1" data-cke-widget-keep-attr="0" data-widget="footnotemarker" class="cke_widget_element"><a href="#footnote-1" id="footnote-marker-1-1" rel="footnote">[1]</a></sup></span></ins></td></tr></tbody></table>

This does not occur when tables are not inside of an ins.

This makes the lite plugin and footnote plugin not play well together.

This

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions