Can't paste images in line

Hello, i want to paste images or screenshots in new tickets or commented
but i cant, maybe is related with this:

Anyone can help me?

Thanks!
Andrea Caputto

Hi Andrea,

I had the same problem and wrote an extension to be able to attach an image
to a ticket from the clipboard (this create an attachment to the ticket,
its not inline). The extension was written for RT 4.2, 2 years ago and I
did not test it with newer RT version nor with new browsers versions
http://lists.bestpractical.com/pipermail/rt-devel/2014-January/012012.html

I can see in RT 4.4 release notes that they include a modern file upload
interface

  • RT now has a modern file upload interface which allows you to select
    multiple files in one fell swoop, drag and drop attachments onto RT, and
    inline preview certain file types like images.

hope this helps
Rémi2016-05-30 19:21 GMT+02:00 Andrea Caputto androponia@gmail.com:

Hello, i want to paste images or screenshots in new tickets or commented
but i cant, maybe is related with this:

Carbon60: Managed Cloud Services

Anyone can help me?

Thanks!

Andrea Caputto


RT 4.4 and RTIR Training Sessions https://bestpractical.com/training

  • Los Angeles - September, 2016

Thanks! RT 4.4 has a drag and drop attachment its nice, but i want to
paste, htlm or images like screenshot directly in the comment…El jue., 2 jun. 2016 a las 12:38, Rémi (mirebob@gmail.com) escribió:

Hi Andrea,

I had the same problem and wrote an extension to be able to attach an
image to a ticket from the clipboard (this create an attachment to the
ticket, its not inline). The extension was written for RT 4.2, 2 years
ago and I did not test it with newer RT version nor with new browsers
versions
[rt-devel] RT-Extension-PasteImageAttachment
GitHub - valmiRe/rt-extension-pasteimageattachment

I can see in RT 4.4 release notes that they include a modern file upload
interface

  • RT now has a modern file upload interface which allows you to select
    multiple files in one fell swoop, drag and drop attachments onto RT, and
    inline preview certain file types like images.

hope this helps
Rémi

2016-05-30 19:21 GMT+02:00 Andrea Caputto androponia@gmail.com:

Hello, i want to paste images or screenshots in new tickets or commented
but i cant, maybe is related with this:

Carbon60: Managed Cloud Services

Anyone can help me?

Thanks!

Andrea Caputto


RT 4.4 and RTIR Training Sessions https://bestpractical.com/training

  • Los Angeles - September, 2016


Andrea Caputto

you can paste image with firefox, it automatically convert the image in
base64, other browsers behave differently2016-06-02 18:00 GMT+02:00 Andrea Caputto androponia@gmail.com:

Thanks! RT 4.4 has a drag and drop attachment its nice, but i want to
paste, htlm or images like screenshot directly in the comment…

El jue., 2 jun. 2016 a las 12:38, Rémi (mirebob@gmail.com) escribió:

Hi Andrea,

I had the same problem and wrote an extension to be able to attach an
image to a ticket from the clipboard (this create an attachment to the
ticket, its not inline). The extension was written for RT 4.2, 2 years
ago and I did not test it with newer RT version nor with new browsers
versions
[rt-devel] RT-Extension-PasteImageAttachment
GitHub - valmiRe/rt-extension-pasteimageattachment

I can see in RT 4.4 release notes that they include a modern file upload
interface

  • RT now has a modern file upload interface which allows you to select
    multiple files in one fell swoop, drag and drop attachments onto RT, and
    inline preview certain file types like images.

hope this helps
Rémi

2016-05-30 19:21 GMT+02:00 Andrea Caputto androponia@gmail.com:

Hello, i want to paste images or screenshots in new tickets or commented
but i cant, maybe is related with this:

Carbon60: Managed Cloud Services

Anyone can help me?

Thanks!

Andrea Caputto


RT 4.4 and RTIR Training Sessions https://bestpractical.com/training

  • Los Angeles - September, 2016


Andrea Caputto

Its not working well , because it dosent paste it deffinitlyEl vie., 3 jun. 2016 a las 6:16, Rémi (mirebob@gmail.com) escribió:

you can paste image with firefox, it automatically convert the image in
base64, other browsers behave differently

2016-06-02 18:00 GMT+02:00 Andrea Caputto androponia@gmail.com:

Thanks! RT 4.4 has a drag and drop attachment its nice, but i want to
paste, htlm or images like screenshot directly in the comment…

El jue., 2 jun. 2016 a las 12:38, Rémi (mirebob@gmail.com) escribió:

Hi Andrea,

I had the same problem and wrote an extension to be able to attach an
image to a ticket from the clipboard (this create an attachment to the
ticket, its not inline). The extension was written for RT 4.2, 2 years
ago and I did not test it with newer RT version nor with new browsers
versions

[rt-devel] RT-Extension-PasteImageAttachment
GitHub - valmiRe/rt-extension-pasteimageattachment

I can see in RT 4.4 release notes that they include a modern file
upload interface

  • RT now has a modern file upload interface which allows you to select
    multiple files in one fell swoop, drag and drop attachments onto RT, and
    inline preview certain file types like images.

hope this helps
Rémi

2016-05-30 19:21 GMT+02:00 Andrea Caputto androponia@gmail.com:

Hello, i want to paste images or screenshots in new tickets or
commented but i cant, maybe is related with this:

Carbon60: Managed Cloud Services

Anyone can help me?

Thanks!

Andrea Caputto


RT 4.4 and RTIR Training Sessions https://bestpractical.com/training

  • Los Angeles - September, 2016


Andrea Caputto


Andrea Caputto

Le 30/05/2016 � 19:21, Andrea Caputto a �crit :

Hello, i want to paste images or screenshots in new tickets or commented
but i cant, maybe is related with this:

Carbon60: Managed Cloud Services

Anyone can help me?

have a look at this:

https://issues.bestpractical.com/Ticket/Display.html?id=32043

here it works fine, ckeditor convert copy/paste to data:base64 inline
images, but:

RT may not display it because:

  • src:data isn’t allowed (see RT::Extension::PermissiveHTML to fix this)
  • src:data need to increase $MaxInlineBody to display it
  • src:data isn’t displayed in all mail user agents, like gmail for example

with the above patch, it works.

Hello Emmanuel thanks for your comment, it is right if i put :

Set($RT::Extension::PermissiveHTML, ‘1’);

?

How do i modify maxlines?

Thanks!!El vie., 3 jun. 2016 a las 10:13, Emmanuel Lacour (elacour@easter-eggs.com) escribió:

Le 30/05/2016 à 19:21, Andrea Caputto a écrit :

Hello, i want to paste images or screenshots in new tickets or commented
but i cant, maybe is related with this:

Carbon60: Managed Cloud Services

Anyone can help me?

have a look at this:

Login

here it works fine, ckeditor convert copy/paste to data:base64 inline
images, but:

RT may not display it because:

  • src:data isn’t allowed (see RT::Extension::PermissiveHTML to fix this)
  • src:data need to increase $MaxInlineBody to display it
  • src:data isn’t displayed in all mail user agents, like gmail for example

with the above patch, it works.

RT 4.4 and RTIR Training Sessions https://bestpractical.com/training

  • Los Angeles - September, 2016

Andrea Caputto

Hello Emmanuel thanks for your comment, it is right if i put :

Set($RT::Extension::PermissiveHTML, ‘1’);

Install the extension and follow the configuration doc. Here I had:

Plugin(‘RT::Extension::PermissiveHTMLMail’);
Set($MaxInlineBody, 1000000);
Set($ShowTransactionImages, 1); # (default)

and the file:

$ cat rt/local/lib/RT/Interface/Web_Local.pm
package HTML::Mason::Commands;

Show inline data images (mostly for Ctrl+v in richtext editor)

$SCRUBBER_RULES{‘img’}->{‘src’} .= “|”.qr/^data:/i if
RT->Config->Get(‘ShowTransactionImages’);

1;

thought I prefer now the patch I submited in the ticket.

are you sure that extension is working for RT 4.4?

ThanksEl vie., 3 jun. 2016 a las 10:43, Emmanuel Lacour (elacour@easter-eggs.com) escribió:

Le 03/06/2016 à 15:25, Andrea Caputto a écrit :

Hello Emmanuel thanks for your comment, it is right if i put :

Set($RT::Extension::PermissiveHTML, ‘1’);

Install the extension and follow the configuration doc. Here I had:

Plugin(‘RT::Extension::PermissiveHTMLMail’);
Set($MaxInlineBody, 1000000);
Set($ShowTransactionImages, 1); # (default)

and the file:

$ cat rt/local/lib/RT/Interface/Web_Local.pm
package HTML::Mason::Commands;

Show inline data images (mostly for Ctrl+v in richtext editor)

$SCRUBBER_RULES{‘img’}->{‘src’} .= “|”.qr/^data:/i if
RT->Config->Get(‘ShowTransactionImages’);

1;

thought I prefer now the patch I submited in the ticket.

Andrea Caputto

are you sure that extension is working for RT 4.4?

I don’t know, I do not have 4.4 on production servers yet (will do soon).

Thanks.
El El mar, 7 de jun. de 2016 a las 18:35, Emmanuel Lacour <
elacour@easter-eggs.com> escribió:> Le 07/06/2016 à 19:35, Andrea Caputto a écrit :

are you sure that extension is working for RT 4.4?

I don’t know, I do not have 4.4 on production servers yet (will do soon).

Andrea Caputto