Issue Bug Closed

#100046Creating a link within an RTE CKEditor table cell without having any text selected merges this table cell with a neighboring cell

Gerrit Hübbers 02/28/23, 17:03 updated 06/24/24, 09:30

Description

Using

fluid_styled_content v11.5.24
rte_ckeditor v11.5.24

When editing a content element with CKEditor, when adding a link within an HTML table cell ( <td> ) WITHOUT having selected some text on which this link is being added to, this table cell gets merged with a neighboring cell, effectively deleting one <td>..</td> element.

bodytext before link insertion:

<table border="1">
    <tbody>
        <tr>
            <td>111</td>
            <td>222</td>
            <td>333</td>
        </tr>
        <tr>
            <td>444</td>
            <td>555</td>
            <td>666</td>
        </tr>
        <tr>
            <td>777</td>
            <td>888</td>
            <td>999</td>
        </tr>
    </tbody>
</table>

bodytext after link insertion:

<table border="1">
    <tbody>
        <tr>
            <td>111</td>
            <td>222</td>
            <td>333</td>
        </tr>
        <tr>
            <td>444<a href="mailto:foo@example.com">555</a></td>
            <td>666</td>
        </tr>
        <tr>
            <td>777</td>
            <td>888</td>
            <td>999</td>
        </tr>
    </tbody>
</table>

Here is a screen recording:

typo3-ckeditor-table-cell-link-error.gif

Maybe this was introduced with the fix for https://forge.typo3.org/issues/92245 (CKEditor: Table wrapped around links when linking a text in a table (Chrome))?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.