MyBB Community Forums

Full Version: Remove attachment Text BBcode into Post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Remove attachment Text BBcode into Post

When Edit a post can delete or add attachment  and can -Insert into a Post -

but When Remove attachment... The BBCode  - Insert into a Post -  Still in the Post!

[Image: O2X4zDA.png]

Reproduction steps
1. Create a post with attachment.
2. Add Attachment.
3. - Insert into a Post -  Buton BBCode
4. Post Reply.

Issue:
When Delete the Attachment  The BBCode -Insert into a Post -  Still in the Post!

- It would be good to delete the BBcode from the Post too!


it's just a suggestion... The Software its Amazing!

Thank you!  Smile
Confirmed, after removing attachment code in editor isn't removed.

Maybe it's because removing actual text from editor is not so easy to do by php script.

Edit: confirmed, but not considered as issue / bug. It is impossible to easily remove attachment code from editor. And editor doesn't have any functions to remove specified text. Since attachment code isn't exactly a bbcode it is not parsed by SCEditor, and only by MyBB.
It should be possible maybe if we try to change source mode and wysiwyg mode editor "windows" values.
Not sure if this is still needed but managed to find a hot fix.

https://github.com/veryard/mybb/commit/b...1a420837c1

Preview:
https://gfycat.com/scentedtestyfieldspaniel

Thanks,
Brad.
(2019-03-06, 09:30 AM)MinusPL Wrote: [ -> ]It is impossible to easily remove attachment code from editor. And editor doesn't have any functions to remove specified text.

Actually, the attachment BBCode is easy to remove both in JS and PHP. This should be added as a low-priority enhancement in future updates.
Yes, I provided a solution on Github: https://github.com/mybb/mybb/pull/3629

Thanks.
I can't find the issue in Github.
Can anyone link me?
I think there is no issue for that PR. Anyway it is a valid report.
Then the thread prefix is purely manual?
Why the .... :@
Brad, I have recommended something in your PR. See if its logical.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/3644

Thanks for contributing to MyBB!

Regards,
The MyBB Group
Pages: 1 2