[wp-trac] [WordPress Trac] #24409: Edit Image in TinyMCE editor revamp

WordPress Trac noreply at wordpress.org
Fri May 24 21:22:04 UTC 2013


#24409: Edit Image in TinyMCE editor revamp
-----------------------------+------------------------------
 Reporter:  eablokker        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  3.5.1
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by eablokker):

 I agree, the TinyMCE thickbox should not be used for this.

 Yes the data attribute could be unreliable, but it's slightly less
 unreliable than the CSS class, since the CSS class is editable from the
 Advanced tab, whereas the data attribute would not be editable from a UI
 dialog. Yes it could get mangled by someone editing in code view. However
 coders should know that CSS classes are there for style purposes, and are
 welcome to edit them, whereas data attributes are meant for something
 else.

 What are some other solutions?

 Insert entire image as a shortcode? Would this pose a problem for content
 portability? It occurs to me that captions are inserted as shortcodes, so
 why not images?

 Use img src path to determine the media attachment? One potential problem
 is if the image file name points to a custom size like image640x480.jpg,
 and the custom image size is changed or deleted or doesn't exist on a
 different system, then the original image ID would not be found. There
 could be workarounds for this, but it seems this method, while being
 immune to user error, would be prone to system error.

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


More information about the wp-trac mailing list