#3188 - Allow disabling the feature where deleted attachments automatically get put back
| Identifier | #3188 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Allow disabling the feature where deleted attachments automatically get put back |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | Chris Graham |
| Addon | core_rich_media |
| Description | If you attach a file, then delete the Comcode reference for it, then preview (without reloading the whole editor), it comes back at the end of the post.
This is an intentionally feature for people who accidentally (or intentionally) erase attachments from the post, but do actually still want it on the end (like a normal 'attachment' might be expected to be). Currently the feature auto-disables for simplified-attachments-UI. Make an option so you have full control of it. I think either setting may confuse people, it's very much personal preference. |
| Steps to reproduce | |
| Additional information | This code:
} elseif ((!browser_matches('simplified_attachments_ui')) && (strpos($comcode, ']new_' . $matches[1] . '[/attachment]') === false) && (strpos($comcode, ']new_' . $matches[1] . '[/attachment_safe]') === false)) { if (preg_match('#\]\d+\[/attachment\]#', $comcode) == 0) { // Attachment could have already been put through (e.g. during a preview). If we have actual ID's referenced, it's almost certainly the case. $comcode .= "\n\n" . '[attachment]new_' . $matches[1] . '[/attachment]'; } } |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments