[wp-trac] [WordPress Trac] #21391: Move attachment editing (media.php) to use standard post type UI

WordPress Trac noreply at wordpress.org
Sun Nov 11 22:22:07 UTC 2012


#21391: Move attachment editing (media.php) to use standard post type UI
----------------------------+------------------
 Reporter:  nacin           |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  Media           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by tar.gz):

 Replying to [comment:63 DrewAPicture]:

 > How would you handle the editor if the media were previewed in the right
 column?

 Ah, right, the editor. Will it stay exactly the same as in 3.4? In WP 3.4,
 while the preview is thumbnail (150x150), the size of the image in the
 editor is 400 px wide. That feels intuitive enough.

 But won't it feel strange if the preview is 1024px wide, and when you open
 the editor, the image shrinks to 400px width?

 So a good compromise is maybe to use the same size (400x300, rougly), both
 for the preview and for the editor. That would look pretty much like the
 screenshot posted above by helenyhou.


 > > (2) file URL field (...) line breaks (...) auto-selected.
 >
 > This would be great. Do you have a patch?

 Not yet, but I gave it a try with Firebug. Apparently, it's impossible to
 force a line break with CSS on an <input> element - `word-break` and
 `word-wrap` rules are ignored. Auto-selection on click is very easy, we
 just need to add `onclick="this.focus();this.select()"` to the markup.

 On the other hand, if we would use some other container element, such as
 <p>, the URL would break normally, and would be fully visible, but it
 would need additional styling. Also then the above Javascript won't work,
 it would require some tweaking. Not sure which solution is more
 appropriate, but the second needs more work.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21391#comment:64>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list