[wp-trac] [WordPress Trac] #18311: Support HTML in image captions.

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 23:02:29 UTC 2012


#18311: Support HTML in image captions.
-----------------------------------+-----------------------
 Reporter:  prettyboymp            |       Owner:  sushkov
     Type:  task (blessed)         |      Status:  assigned
 Priority:  normal                 |   Milestone:  3.4
Component:  Editor                 |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  ux-feedback has-patch  |
-----------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:55 sushkov]:
 > One reason I would disable `wpLink` in image popus, is because wpLink
 itself is a popup...
 > ...Static `wpeditimage.html` needs a bunch of js files in header to make
 it work...

 The problem is that the default "link" in Quicktags is... quite bad. It
 opens a browser generated modal popup (for the url) which is most basic
 (and uglier) UI we can have (unfortunately there's no other way to do it
 in Quicktags). Also don't think we can use wp-link in some places and not
 use it in other. The UI needs to be consistent.

 The current UX/UI questions are:

 - Shall we add Quicktags on the Image Caption fields.
     - With Quicktags we can have 2-3 more buttons that insert HTML tags
 but the "link" button opens an ugly modal popup.
     - Without Quicktags we only have a "link" button but the UI/UX is
 better.
     - It may be possible to tweak Quicktags' link button to use the
 current link UI. Would that be the best option.

   In both cases we would be showing the raw HTML code there.

   Another inconsistency is that the "Caption" fields would have some sort
 of HTML editor but the "Description" fields would not. Description is
 actually the post_content and supports HTML.

 - Shall we try to steer the users into editing captions directly into the
 visual editor. This is by far the best place to edit captions as all is
 wysiwyg, the image together with the caption usually looks exactly the
 same as on the front-end. An idea on how we can do that is to add a third
 button when clicking on an image in the visual editor. That button would
 be for adding (and removing) the caption "wrapper" on the image.

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


More information about the wp-trac mailing list