lyralemos
(Alexandre Marinho)
July 2, 2025, 3:56pm
1
I've recently received some questions from users who are copying and pasting images into the text editor (tinymce).
And it does work, however, only in the editing form. In the view, the image is broken.
I believe this happened when TinyMCE was updated to version 7.
In version 5, the default option for paste_data_images was false, but this changed in version 7.
Version 7
Version 5
It might be better to set this to false when integrating Plone with TinyMCE to avoid these issues.
1letter
(Jan)
July 3, 2025, 6:01am
2
Please open an issue in mockup.
petschki
(Peter Mathis)
July 3, 2025, 6:04am
3
Unfortunately the paste plugin code has moved to the "premium plugins" which have to be paid for.
The PowerPaste plugin automatically cleans up content from Microsoft Word, Microsoft Excel, Google Docs, and HTML sources.
It would be great if you file an issue here GitHub · Where software is built for changing the default options.
lyralemos
(Alexandre Marinho)
July 3, 2025, 10:55am
4
For a client project I grabbed code from
Assuree that no inline base64 encoded image is stored in an RichtTextField
as suggested in the post Extracting base64 encoded images from HTML - #2 by fredvd
On ObjectModifiedEvent my hacked monstrosity creates an image in the content item (it must be folderish) then changes the img tag src to be the newly created image, prepends the parent item ID to the path of the image, and uses a scaled version of the image.
I’m sure my code can be improved on, but at least now my users can quickly paste an image into what they’re writing and have Plone just do its expected thing.
I’ll see if I can pull out just that feature…