[wp-trac] [WordPress Trac] #22726: Move 'Insert from URL' tab into the 'Insert Media' tab

WordPress Trac noreply at wordpress.org
Tue Aug 5 15:58:15 UTC 2014


#22726: Move 'Insert from URL' tab into the 'Insert Media' tab
-------------------------+-----------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Media        |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui, javascript
-------------------------+-----------------------------

Comment (by Fab1en):

 I played a bit with this, and faced an issue : the "Insert into Post"
 action button is not available as long as no attachment is selected in the
 Library. That seams logical : when the other tab "Upload File" is used,
 the result is to add a new attachment in the Library and select  it.

 So here is what I propose : after having inserted an URL in this "From
 URL" tab, why not creating a new attachment linking to that new URL
 without referencing an actual file in the uploads directory ? That would
 allow to represent a YouTube Video with a Video type attachment, and save
 it for future use. Thanks to MediaElementJS YouTube support, the video
 could also be played via the Media menu. That would require some tweaks
 here and there to bypass automatic attachment URL generation (like in
 `wp_get_attachment_url`) and display things correctly everywhere.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22726#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list