View Issue Details

IDProjectCategoryView StatusLast Update
2045ComposrGeneral / Uncategorisedpublic2015-09-27 14:55
ReporterChris Graham Assigned ToChris Graham  
PriorityhighSeverityminor 
Status resolvedResolutionfixed 
Product Version9.0.20 
Summary2045: Cutting and pasting images, workaround to misunderstanding
DescriptionSome users may paste images into the WYSIWYG editor and not understand what this does. They may then cut them into the clipboard, save the original resource that had them, paste them elsewhere and save that, and find they are lost.

When an image is pasted into the WYSIWYG it embeds as base64, i.e. all the binary data is encapsulated directly within the edited post rather than as separate file(s). That isn't an appropriate situation for Composr to maintain (it's extremely in efficient), so we convert it into an attachment when Composr saves. Attachments however only persist as long as they are referenced. Therefore if you cut and save, then paste elsewhere, it results in a broken reference because the attachment was lost at the cut and save point.

This hotfix allows you to disable attachment cleanup. The trade-off is that attachments will build up on-disk. This probably is not a practical concern, given disk space and bandwidth are bountiful nowadays.

After applying the hotfix activate via this Commandr command:

:set_value('disable_attachment_cleanup','1');

Paste this precisely. The leading colon is required.

For v10 we will make this a proper config option.
TagsNo tags attached.
Attach Tags
Attached Files
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2015-09-27 14:55

administrator   ~3105

Fixed in git commit 86fb8ff (https://github.com/chrisgraham/Composr/commit/86fb8ff - link will become active once code pushed to github)

A hotfix (a TAR of files to upload) have been uploaded to this issue. These files are made to the latest intra-version state (i.e. may roll in earlier fixes too if made to the same files) - so only upload files newer than what you have already. Always take backups of files you are replacing or keep a copy of the manual installer for your version, and only apply fixes you need. These hotfixes are not necessarily reliable or well supported. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/).

Issue History

Date Modified Username Field Change
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised