Bug #75392
closedRTE pastetoggle with multiple RTEs in an element does not work as intended
0%
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.
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