image field or wysiwyg?

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
bartucz
Posts: 2
Joined: 02 Nov 2009, 23:18

image field or wysiwyg?

Post by bartucz »

Hi All, I am trying to convert my business to use Mantis from a horrible, horrible alternative. The only reason the CTO won't force everyone to switch right now is because they can drag and drop images directly into the notes that they currently create. So the "business" users can easily show what issues they are seeing.

Are there any solutions that are remotely close? Even if I can't drag and drop, if I can at least insert an image which displays on the issue page without having to download and open it (i.e. wysiwyg), it will probably be enough.

Any direction would be greatly appreciated.

thanks!
John
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: image field or wysiwyg?

Post by atrol »

set the option preview_attachments_inline_max_size to 200000 for example.
From now on you have a inline preview of some document types (at least jpg, gif) if their size is less than 200000 Bytes (no problem for fast networks)
Please use Search before posting and read the Manual
bartucz
Posts: 2
Joined: 02 Nov 2009, 23:18

Re: image field or wysiwyg?

Post by bartucz »

thank you! I tried it and it works really well.

Now, while I'm shooting for the moon, is there a plugin for drag-and-drop or screen capture or anything like that?
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: image field or wysiwyg?

Post by atrol »

Have a look at
http://www.mantisbt.org/bugs/view.php?id=7053

There is also a tool called "Bugshooting"
really nice, but currently not usable for me, because it's not able send to jpg to MantisBT (at the moment just bmp)
http://www.bugshooting.com

But be aware, that you will have to install additional software on the client.

AFAIK there is no other solution (based on JavaScript) at the moment which could solve it.

BTW
Use the search function of the fourm :wink:
Please use Search before posting and read the Manual
kirinawust
Posts: 1
Joined: 22 Jun 2010, 12:15

Re: image field or wysiwyg?

Post by kirinawust »

Hi,
where do I find the option preview_attachments_inline_max_size?

thx in bunches

Irina
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: image field or wysiwyg?

Post by atrol »

kirinawust wrote: where do I find the option preview_attachments_inline_max_size?
There are two possible ways to customize this setting
a)
add the following line to file config_inc.php (example to set limit to 1 MB)

Code: Select all

$g_preview_attachments_inline_max_size = 1048576;

b)
use page "Manage" -> "Manage configuration"
set option "Users" to "All users"
set option "Projects" to "All projects"
fill field "Configuration" with value preview_attachments_inline_max_size
set option "Type" to "integer"
fill field "Value" with value 1048576
Please use Search before posting and read the Manual
Post Reply