Hi all
I understand that I can force any pastes into CKEditor to be plain text. However I still want the user to have the ability to perform a full paste, but would like to nudge them towards pasting as plain text. Ideally I'd like to do the following
- CTRL-V would default to pasting as plain text
- the editor's context menu would have 'Paste as plain text' as an option, along with the standard 'Paste'
Are either of these possible?
This config
This config.forcePasteAsPlainText option will force pasting as plain text always. Then you won't need a new option in context menu, because all will force plain text.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Hi Piotrek
Hi Piotrek
In an ideal world I would do that, but our users want to have the option to paste from Word etc, but given this can cause issues I'd like to push them towards pasting as plain text whenever possible. hence wanting to add it to the context menu
Doogal
As I just spent a few hours
As I just spent a few hours figuring this out myself, I thought I would share the solution I came up with in case it helps anyone else out:
Thanks
That's great, I will try out your code