Bug #92245
closed
CKEditor: Table wrapped around links when linking a text in a table (Chrome)
Added by Ludovic Nogueira about 4 years ago.
Updated over 3 years ago.
Category:
RTE (rtehtmlarea + ckeditor)
Description
Hello,
In TYPO3 9.20, tested on a fresh install, if you select all the text in a cell and then make a link, CKeditor will create a new table in this cell.
It does not happen if I test it on the CKeditor website: https://nightly.ckeditor.com/20-09-01-06-04/full/samples/
Easy to reproduce, select all the text, select your link (see screenshot)
Note: This was discovered in Chrome browser (verified in Chromium 87.0.4280.66).
Files
I am not able to reproduce it on 9.5.21 - no special config; I just use
RTE.default.preset = full
- Category set to RTE (rtehtmlarea + ckeditor)
@Ludovic Nogueira I use TYPO3's one; I will try on my system with an editor (I tested with admin).
@Ludovic Nogueira I am still not able to reproduce it, even with default preset and an editor user :(
I've found a difference between your system and mine (I logged in in your backend with your instructions):
In my backend, when I create a new table in the editor, it is 100% wide and with collapsed border, while in yours it is not;
In my case, the file /typo3/sysext/rte_ckeditor/Resources/Public/Css/contents.css is loaded
We also discovered that behaviour in Chrome Browser only (using TYPO3 9.5.24).
- Subject changed from CKeditor link in table to CKEditor: Table wrapped around links when linking a text in a table (Chrome)
- Description updated (diff)
- Target version set to next-patchlevel
So this is definitely an issue with the "typo3link" plugin (or the used TYPO3 JS modules in there).
I disabled the plugin, leaving me with the default link plugin from CKEditor which works fine.
I'm currently looking into this issue, however I don't have much experience in CKEditor or the TYPO3 JS backend components.
I'd appreciate any help. ^^
Recorded on TYPO3 CMS 9.5.23 with Chromium v87.0.4280.66
This seems to be some issue with CKEditor, as the element inserted into the editor is created with CKEditor.
The following seems to work:
sysext:rte_ckeditor/Resources/Public/JavaScript/RteLinkBrowser.js
-RteLinkBrowser.CKEditor.insertElement(linkElement);
+RteLinkBrowser.CKEditor.insertHtml(linkElement.getOuterHtml());
I'll do testing with some more browsers and try to provide a pull request for that.
- Status changed from New to Under Review
This issue could not be reproduced in latest 10.4.14 release.
Since version 9 will only receive emergency updates for critical issues, it is encouraged to upgrade to latest TYPO3 10 version to fix this issue.
- Status changed from Under Review to Closed
Thanks for the feedback, Mario!
- Related to Bug #100046: Creating a link within an RTE CKEditor table cell without having any text selected merges this table cell with a neighboring cell added
Also available in: Atom
PDF