Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dragging and dropping images from Firefox into Microsoft Powerpoint

I am trying to make a web page which allows users to drag and drop images into Microsoft Office applications, specifically Powerpoint.

By default (as of FF3.5), Firefox will insert the source URL when an image is dropped rather than the image itself. After adding the following Javascript/jQuery code (derived from https://developer.mozilla.org/En/DragDrop/Drag_Operations),

$('img').attr('draggable', true).bind('dragstart', function (event) {
    event.originalEvent.dataTransfer.effectAllowed = 'copy';
});

dragging and dropping works from Firefox to Word and Excel, but not to PowerPoint. For an example of what happens, see http://slides.html5rocks.com/#drag-and-drop. I have tested this with FF3.6 and FF9.

How can I make it work with PowerPoint?

like image 692
Brett Avatar asked Feb 02 '12 04:02

Brett


People also ask

How do I copy text from a picture in PowerPoint?

Right click the image and choose the option 'Copy Text from Picture'. You can now paste the text back into PowerPoint and there you have it – hours saved!


Video Answer


1 Answers

Just drag'n'drop outside the boundaries of the ppt slide (to make sure you're not dropping on a predefined textbox) - and release the mouse button -no coding needed!

Firefox drag will drop the image at the center of te ppt slide.

like image 197
user2738792 Avatar answered Sep 28 '22 10:09

user2738792