Bug #80843
closedPasting text in RTE leads to non-editable text and empty HTML
0%
Description
Reproduction:
- Copy some text from any website
- Open a new content element, e.g. text/media
- Paste the text into RTE
- The text is not editable
- When you switch to HTML mode, the content is empty
- After saving text is empty
Using:
- TYPO3 7.6.16
- Firefox 52.0.2 (Mac)
In Chrome it works.
Files
Updated by Riccardo De Contardi over 7 years ago
- Status changed from New to Needs Feedback
I am using the same Firefox version on Mac and I am not able to reproduce this issue...
Could you give us more detailed information about how to reproduce it? For example, what text did you try to cut and paste? Do you have javascript errors?
Updated by Thomas Löffler over 7 years ago
Tried it on another TYPO3 installation and it worked.
I found out that it only happens when one button is active. Don't know the index for the button, but has a screenshot. :)
Updated by Riccardo De Contardi over 7 years ago
That button is "enable paste as plain text" ("pastebehaviour", I think).
I was able to reproduce the issue with these steps
1) TS Config:
RTE.default.showButtons=*
2) copy some text from a site
3) create new CE text and media
4) right-click on RTE area > from the context menu select the "Enable paste as plain text"
5) click again on the area as you have lost the focus.
6) cmd+v (paste)
_ note: the text pasted appears in a serif 16px font, like an html text without any css; if it were plain text inside the textarea that would be sans-serif and smaller_
7) you can add text to the area but, wherever you click, it will always be added at the top.
8) if you click the "toggle text mode" button you will discover that only the text you entered at point 7) is present, but not the text you pasted before
9) clicking on save, it saves only the text entered at point 7)
If I click the same icon on the toolbar, instead, it works as expected
Updated by Alexander Opitz about 7 years ago
- Status changed from Needs Feedback to New
Updated by Riccardo De Contardi about 7 years ago
- Status changed from New to Closed
We are sorry, but we close this issue as now TYPO3 uses CKEditor and RTEHtmlarea is no more supported by TYPO3 .
RTEHtmlarea development has stopped - it has been decoupled from the core and its code is available on GitHub:
https://github.com/FriendsOfTYPO3/rtehtmlarea
If you still need this fixed please create a PR on GitHub
Regards
Riccardo De Contardi