Project

General

Profile

Actions

Bug #80843

closed

Pasting text in RTE leads to non-editable text and empty HTML

Added by Thomas Löffler over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2017-04-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Reproduction:

  1. Copy some text from any website
  2. Open a new content element, e.g. text/media
  3. Paste the text into RTE
    • The text is not editable
    • When you switch to HTML mode, the content is empty
  4. After saving text is empty

Using:

  • TYPO3 7.6.16
  • Firefox 52.0.2 (Mac)

In Chrome it works.


Files

Actions #1

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?

Actions #2

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. :)

Actions #3

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

Actions #4

Updated by Alexander Opitz about 7 years ago

  • Status changed from Needs Feedback to New
Actions #5

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

Actions

Also available in: Atom PDF