Open paregorios opened 1 year ago
What we want to get is the old behavior, i.e., just basic HTML character-level formatting comes through (bold, italic, underline, links).
It probably makes sense to test out some of the paste plugin options for the TinyMCE version we are using to see if a more restrictive set of options will help resolve issues with the current version.
There are some tips here which seem to be oriented towards TinyMCE versions 4 and 5, but they may be instructive if we need to do some customization. They could also be useful if/when we do upgrade the TinyMCE version (either using plone.app.widgets or upgrading to Plone 5.x).
Support for improved paste from Word on TinyMCE 4 and 5 is now provided by a commercial add-on which requires a TinyMCE subscription, though at some point it seems to have been available as a standalone purchase for TinyMCE 4. I think that means it's unlikely that we'd get better support out of the box by upgrading Plone/TinyMCE.
@alecpm I assume that testing these options out is a codebase/buildout tasks, yes? I don't see them surfaced in the control panel for the plugin.
@paregorios Yeah, it's JS config of the widget, which probably requires a ZPT/DTML template customization (and there's no guarantee that there's a way to make the editor work with recent versions of Word). This document seems to imply that the only way to make this work reliably is to use Notepad as an intermediary for the paste (or better yet as the original rich text document source). Maybe that could be a "solution"?
The WYSIWYG editor for rich text fields has a button that's supposed to make pasting content from Microsoft Word safe by stripping all the evil. It doesn't work anymore. We need it to work.