[wp-trac] [WordPress Trac] #26628: Use the content of a video shortcode when provided

WordPress Trac noreply at wordpress.org
Tue Jan 14 06:14:57 UTC 2014


#26628: Use the content of a video shortcode when provided
------------------------------------+------------------
 Reporter:  wonderboymusic          |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  3.9
Component:  Media                   |     Version:  3.6
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch needs-design  |
------------------------------------+------------------
Changes (by wonderboymusic):

 * keywords:  has-patch => has-patch needs-design


Comment:

 [attachment:26628.diff​ 26628.diff​] adds a unit test and a TinyMCE plugin
 to handle image replacement for the Audio and Video shortcodes.
 Replacement is necessary to void squashing the inside of `[video
 name="value"]{EVERYTHING IN HERE GETS ERASED WHEN SWITCHING FROM TEXT TO
 VISUAL OTHERWISE}[/video]`

 Right now, `[audio]` and `[video]` are replaced with an image (`wp-
 includes/js/tinymce/skins/wordpress/images/embedded.png` for now) -
 Dashicons aren't currently loaded in the rich editor iframe. If they were,
 we could use the Audio and Video icons in there. If that isn't kosher, we
 need images created to use for Audio and another for video. The images are
 a pre-req for this to go in.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26628#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list