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

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 26 01:57:44 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 dev-feedback  |
--------------------------------------+-----------------------

Comment (by sushkov):

 UI/UX in wpeditimage.html is tricky stuff because `ed.translate()`
 replaces existing document.body with a new one, and old elements bindings
 die.

 To get over it, I moved wysiwyg outside the components that require
 translation, after those are parsed, wysiwyg hides initial textarea, and
 updates its value in the background.

 Looking back, I think we can just instantiate wysiwyg with the textarea
 name, since all this stuff depends on js and name attributes are
 irrelevant.

 As for now, `wpImage.enableWysiwyg()` doesn't convert double-quotes into
 single-quotes, so using this from tinyMCE might srip formatting. Will take
 a look later.

 Files are not minified.

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


More information about the wp-trac mailing list