Turn off paste image when adding a note

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
jreljac
Posts: 3
Joined: Aug 30, 2019 7:52 am

Turn off paste image when adding a note

Post by jreljac » Aug 30, 2019 7:55 am

I'm not sure when this started (2.22?) but now, when I command + v text into a note field mantis automatically adds ann attachment of the pasted text in addition to putting the text in the note field. Is there an option to turn this off?

I'm on a Mac, running latest version of Firefox.

atrol
Site Admin
Posts: 7670
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Turn off paste image when adding a note

Post by atrol » Sep 01, 2019 12:06 pm

I am pretty sure this is caused by https://mantisbt.org/bugs/view.php?id=21797

But i am not able to reproduce. I am running latest version of Firefox, but not latest version of maOS (using 10.13.6)

Are you sure you copied just text, but not a text file?
Please use Search before posting and read the Manual

jreljac
Posts: 3
Joined: Aug 30, 2019 7:52 am

Re: Turn off paste image when adding a note

Post by jreljac » Sep 05, 2019 6:20 pm

So now that I've asked I can't reliably recreate it but could it possible be when I try to pasted formatted html into the text box that causes something like this to happen?

jreljac
Posts: 3
Joined: Aug 30, 2019 7:52 am

Re: Turn off paste image when adding a note

Post by jreljac » Sep 06, 2019 7:56 am

So it did just happen...
In a project I opened a ticket and in the "Add note" section I pasted text I highlighted from Microsoft outlook.
It pasted the text properly but also attached an image "image.png" of the pasted text. (See image attached)

The copied text does have html formatted bits at the bottom.
Weird thing is, it only happens the first time I paste. When I paste a second time, it does not act the same way.
(Very strange)


Image

dregad
Developer
Posts: 39
Joined: Jul 26, 2010 9:24 am

Re: Turn off paste image when adding a note

Post by dregad » Sep 17, 2019 3:00 am

That depends how the application from which you copied the text sends it to the clipboard. Sometimes it allows multiple formats (e.g. Microsoft Excel).

FYI this issue was reported here https://mantisbt.org/bugs/view.php?id=26127

Post Reply