[BUGFIX] Prevent duplicate pastes in rtehtmlarea 71/49871/5
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:24:58 +0000 (17:24 +0200)
commit34d32feb8ab9edc46c63570bc0dc2467bc2f2317
tree2fd1d387019e0c05bd3fa2bce20a81edd297a7af
parent2130c800b0d670a802b18b4f4c9451adfa094a37
[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/49871
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/PlainText.js