Bug #78705
closedRTE converts spaces into nbsp before/after ul, ol in table cells
0%
Description
When I've got code like this:
<table><tr><td><ul><li>Item</li><li>Item</li><li>Item</li></ul></td></tr></table>
it works fine until I switch to HTML or disable rte at all and add spaces before and after ul, ol (or it is added by TinyMCE when is enabled):
<table><tr><td> <ul><li>Item</li><li>Item</li><li>Item</li></ul> </td></tr></table>
it converts in FE into code like this:
<table> <tr> <td> <ul> <li>Item</li> <li>Item</li> <li>Item</li> </ul> </td> </tr> </table>
Have you got any idea please?
This works the same in 7.6.
Files
Updated by Riccardo De Contardi over 7 years ago
This still happens on 7.6.16 with RTEHtmlarea and even on 8.7-dev (latest master) with CKEditor.
Test procedure:¶
1) create a new "Text and Medie CE"
2) click on RTE
3) click the "toggle text mode" button ("Source" button on CKEditor)
4) insert the code:
<table><tr><td><ul><li>Item</li><li>Item</li><li>Item</li></ul></td></tr></table>
5) Save
6) click again the "toggle text mode" button
7) add the spaces:
<table><tr><td> <ul><li>Item</li><li>Item</li><li>Item</li></ul> </td></tr></table>
8) save again and preview page
Result:¶
added instead of the spaces, but only in frontend. The
are still absent if you look at the code in the backend RTE
Updated by Mathias Schreiber about 7 years ago
- Status changed from New to Closed
HTMLArea is no longer supported by TYPO3.
You can open up new issues here https://github.com/FriendsOfTYPO3/rtehtmlarea.
Cheers
Mathias
Updated by Joe Jones over 6 years ago
- File nbsp_in_table.PNG nbsp_in_table.PNG added
Hallo Mathias,
Same problem here. Building a structure table with ul, nbsp is added in the frontend before and after <ul></ul>. I can't find a way to pretend. It happens in the ckeditor in TYPO 8.7.12. I tried the ckeditor config by adding:
editor:
config:
fillEmptyBlocks: false
tabSpaces: 0
forcePasteAsPlainText: true
entities_additional: ''
Did not change anything. I will remove the nbsp via javascript. No good way.
See attachment.
Thank you
Martin