http://tinymce.moxiecode.com/js/tinymce/changelog.txt states that tinyMCE version 3.2.3 "Added new paste plugin logic. This new version will autodetect Word contents and clean it up."

This means that now the users can do CTR+V and the whole word layout is copied into the web page. My website has strict layout rules, I only allow users to use common stylesheets. As they can now CTRL+V whatever they want, I have a problem to keep a common layout. Is there any workaround/way of making sure that CTRL+V does enfore the "paste as text" functionality?

Comments

sun’s picture

Status: Active » Fixed

The code in TinyMCE was improved, but the configuration that triggers the code is still the same.

You need to enable at least one button of the "paste" plugin, i.e. "Paste from Word" or "Paste as text". If desired you can additionally enable the "Auto clean-up on paste" configuration option.

myDRU’s picture

If I enable the "Paste from Word" or "Paste as text", they work fine. But even in that case, any webmaster on the website can still do CTRL+V and then the text is pasted as is, not as text. Is there a way to enforce paste as text?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Version: 6.x-2.0-alpha1 » 6.x-2.0
Component: Editor - TinyMCE » User interface
Category: support » feature
Status: Closed (fixed) » Active

I have the same problem here: There is an option to make Ctrl+v behave like "Paste from word", but I urgently need it to behave like "Paste as text". Enabling the corresponding button is not sufficient, as many users are working with shortcuts, and I really can't tell each and every user only to use the button to paste text.

As this is a very useful addition for any editor, supporting it, I changed the component from "TinyMCE" to "UI". AFAIK, this is at least supported by FCKeditor and TinyMCE.

It should be FCKConfig.ForcePasteAsPlainText = true ; for FCKeditor and maybe paste_remove_styles in TinyMCE.

Regards,
forschi

TwoD’s picture

Status: Active » Closed (duplicate)

Changing settings like this will be possible once #313497: Allow configuration of advanced editor settings is resolved, which is one of the goals for the next major version. I can't say exactly what the GUI will look like, but you should not need to change a single file.

Until then, you'd have to hack the editor implementation JavaScript files in wysiwyg/editors/js (or the default settings files included in the editor libraries).