[TYPO3-rte] Paste as plain text as default
Michael Bakonyi
kontakt at mb-neuemedien.de
Sun Jul 29 10:21:41 CEST 2012
Hi Urs,
you can set the "pastetoogle"-button to "on" by default with the
following line in the pageTS:
RTE.default.buttons.pastetoggle.setActiveOnRteOpen = 1
Additionally you can hide it, if the editor shouldn't have the
possiblity to change the mode:
RTE.default.buttons.pastetoggle.hidden = 1
The pasting-behaviour can be set for each user individually in it's
settings in the backend, or by overriding these settings with the
following lines within the userTS:
setup.override.rteCleanPasteBehaviour = BEHAVIOUR
Regarding the BEHAVIOUR you have the following options:
plainText
pasteStructure
pasteFormat
I ususally use
setup.override.rteCleanPasteBehaviour = pasteStructure
as it keeps the linebreaks but removes all other formatting.
Btw. this is all stated in the manual of the extension. Just have a look
there.
Cheers,
Michael
Am 29.05.12 16:27, schrieb Urs Bräm:
> And: how can I set the paste as plain text feature to keep line breaks?
> (you are allowed to scold me if it's in the manual as I haven't looked :-)
>
> Am 29.05.12 16:16, schrieb Urs Bräm:
>> Hi
>>
>> I just discovered the fabulous option to add
>> pastetoggle, pastebehaviour, pasteastext to RTE.default.showButtons to
>> enable users to switch between paste plain text and regular mode. Great!
>>
>> Alas, the two states of the button look very similar, so users might
>> have trouble recognizing if they're in the correct state.
>>
>> As HTML paste is still a major issue with editors, I would prefer the
>> RTE to always open in "paste as plain" mode, and without being able to
>> memorize it beyond a save if the user switches to regular paste mode.
>>
>> Is there a way to set that? Or should I file a feature request?
>>
>> Thanks
>> Urs
>>
>>
>
>
More information about the TYPO3-project-rte
mailing list