Project

General

Profile

Actions

Bug #75392

closed

RTE pastetoggle with multiple RTEs in an element does not work as intended

Added by Tim Wehrmann over 8 years ago. Updated about 7 years ago.

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

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
RTE, Pastetoggle
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi everyone,
there are two problems with the RTE Pastetoggle, when there are more than two RTEs in an element.

First problem:
If the pastetoggle button is visible by RTE.default.showButtons := addToList(pastetoggle) and you activate it for a RTE, it is activated for all RTEs in the element.

Second problem:
This problem seems to be a result of the first problem somehow. If the pastetoggle button is visible and the RTE.options.buttons.pastetoggle.setActiveOnRteOpen
is set, then it behaves very strange: Each odd number of RTEs in an element respects this setting, each even number of RTEs not. So if you have 2 (or 4, 6, …) RTEs in a single element, then the copied text will be pasted as it is, but with 3 (or 5, 7, …) RTEs the text’s format will be removed.

Appended extension
I appended an extension which adds four elements with 2, 3, 4 and 5 RTEs. This extension also sets:
  • RTE.default.showButtons := addToList(pastetoggle)
  • RTE.options.buttons.pastetoggle.setActiveOnRteOpen = 1

Files

pastemode_bug.zip (5.9 KB) pastemode_bug.zip Tim Wehrmann, 2016-04-04 09:43

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #75441: Two Richtext Editors in one form don't work correctlyClosed2016-04-07

Actions
Actions

Also available in: Atom PDF