[wp-trac] [WordPress Trac] #19845: Drag and drop files into the Visual Editor
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 16 17:13:45 UTC 2012
#19845: Drag and drop files into the Visual Editor
-----------------------------+------------------------------
Reporter: kovshenin | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by kovshenin):
Okay plugin's attached. Now in order to grab the visual editor in the DOM
we need to go through an iframe, so the getDocumentById for drop_element
will not work. To get the plugin working you will need to:
* Open wp-includes/js/plupload/plupload.html5.js
* Search for drop_element and remove the call to k.getElementById that
surrounds it so that it says `var r=(p.settings.drop_element);`
* Save and preview in an HTML5 enabled browser, preferably Chrome
There are two places in plupload.html5.js to replace but replacing the
first occurrence should be enough. Make sure that you backup the file
first, although for some reason this doesn't seem to break the existing
drag and drop :)
Let me know if you have any questions, thanks!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19845#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list