[BUGFIX] Prevent duplicate pastes in rtehtmlarea 43/50343/2
authorStefan Froemken <froemken@gmail.com>
Tue, 6 Sep 2016 12:09:01 +0000 (14:09 +0200)
committerJan Helke <typo3@helke.de>
Mon, 24 Oct 2016 15:25:50 +0000 (17:25 +0200)
commitb21552152426c99cf67965c07bc64ce57d236426
tree829d22520aed7077c5b59d710b04595d919c5632
parent308df64fe858afab7b847ac6efe5988257ad4805
[BUGFIX] Prevent duplicate pastes in rtehtmlarea

if pasteFormat or pasteStructur is activated in user settings,
pastings in rtehtmlarea will be inserted twice. Once as plaintext
and a second time as html.
Instead of appending all different text types of ClipBoard
we now override the complete clipboardText, if it is not
of the expected type.
To prevent pasting header data from OpenOffice/LibreOffice/Word
we have added a default value for removeTagsAndContents
which is configurable now.

Resolves: #67661
Releases: master,7.6
Change-Id: I62418ed2d1ce72bb1fb2839e23eaeaa76f42a4c8
Reviewed-on: https://review.typo3.org/50343
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/PlainText.js