Issue Bug Closed

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

Tim Wehrmann 04/04/16, 09:43 updated 10/20/17, 13:42

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.