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

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 23:51:30 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:56 jeremyclarke]:
 > One thing I noticed is it strips out any use of {{{title=}}} in links.

 Titles on links (or other tags) seem to work properly here. Could you try
 to trace where are they stripped.

 > It's nice that if you type double quotes for caption links in the HTML
 editor then switching to VIsual editor makes them single quotes, but is
 there a way we could also do the same thing for people who only use the
 HTML editor?

 Don't think so. We aren't running any pre-save filters on the content of
 the HTML editor and I think most people that use it would insist on that.
 It's a simple case of using the right quotes, I mean `$str = "single quote
 is ok here";` and `$str = 'double quote is ok here';`, same as in any html
 tag. Also people that use the HTML editor usually "know what they are
 doing" :)

 > We aren't planning to stick with the "Add link" UI that's in trunk right
 now are we? I'm a bit confused but it sounds like Sushkov's patches to add
 quicktags is the right way to go.

 Still undecided (see the above comment on that). Using Quicktags would
 make it better for people that use the HTML editor and have at least some
 basic understanding of HTML. For the big majority of users it wouldn't
 make any difference though.

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


More information about the wp-trac mailing list