I'm setting up a knowledge base site for non-technical users, which will include several step-by-step procedures loaded with screen shots. Going through a cycle of Alt-Print Screen, paste into Paint, save to a file, upload to TinyMCE (with the aid of IMCE) is way too tedious (for anyone, let alone this audience). Is it possible to implement pasting an image from the clipboard directly into TinyMCE (or more likely into the image popup), automatically creating an image file and linking to it?

Thanks!

Comments

ufku’s picture

sorry not possible.

mlyno’s picture

Title: Paste image » Paste clipboard image
Project: IMCE » Upload Image
Version: 5.x-1.0 » master
Component: Code » User interface

I stumbled upon the same problem as mikeryan. If having an support portal where users can fill in a form. I searched for quick way to be able to paste the print-screen from the clipboard (ctrl+v) or usin a paste button. It is not necessary that it is inside content body, for me, it should be at least attached as picture attachment to the content. I did not find any solution on Drupal or web.

I know that this feature is possible the JIRA issue and project tracking system from ATLASSIAN has this feature on the web interface and is extremely use full.

Thank you for statement

soma115’s picture

I'm using JIRA at work and possibility to paste picture is very useful. I'm not a programer but I saw that JIRA is using Java to paste picture. I hope you figure it out...

Angry Dan’s picture

This might now be possible, I'm planning to investigate soon.

Pasting an image into contenteditable element (the thing that TinyMCE, et all uses) in Firexox now pastes an image tag with the image base64 encoded in the src attribute.

It wouldn't be too much work to parse that with a Drupal input format and turn it into a physical file for cross browser support.

Does anyone know if any other browsers are doing this? IE9 perhaps?

palik’s picture

sorry but any progress on this? I use this plugin for WP and love it - http://codecanyon.net/item/image-elevator-for-wordpress/4311188, also this could be useful https://github.com/JoelBesada/pasteboard

Angry Dan’s picture

Both look like very viable starting points.

I was hoping this issue might make it's way to D8 as a core patch to integrate with CKeditor 4.

I've got no time to write anything at the moment sadly but it's still on my long term "that'd be cool" list.

Angry Dan’s picture

So on the subject of a D8 core/ CKeditor 4 solution this is an interesting post - http://www.martinezdelizarrondo.com/ckplugins/imagepaste.demo4/

palik’s picture

after lot of google'ing i found that filefield sources have native paste image from clipboard support! found this some months ago but it wasn't working but now i see thatt it works really nice... i'll try to mix it with some other modules (wysiwyg / insert or sth like that) https://drupal.org/project/filefield_sources

birdsnbees’s picture

Issue summary: View changes

This module https://www.drupal.org/project/ckeditor_uploadimage perfectly can do that job plus its also capable of drag and drop image(s). But its for CKEditor and Drupal 8.