[wp-trac] [WordPress Trac] #38511: Copy paste a long shortcode wpview (video, gallery... ) is broken in Firefox

WordPress Trac noreply at wordpress.org
Wed Oct 26 12:57:06 UTC 2016


#38511: Copy paste a long shortcode wpview (video, gallery... ) is broken in
Firefox
--------------------------+-----------------------------
 Reporter:  bduclos       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 '''Steps to reproduce:'''

 - In firefox, copy the following code
 {{{
 [video width="640" height="480"
 mp4="https://videos.files.wordpress.com/GbdhpGF3/video-25313e7f01_hd.mp4"
 poster="https://i2.wp.com/videos.files.wordpress.com/GbdhpGF3/video-
 25313e7f01_scruberthumbnail_0.jpg"][/video]
 }}}

 - In Visual Mode, select the video view, copy it (Ctrl+c) and paste it
 (Ctrl+v) below. Switch to Text mode. Multiple newlines are added which
 results in the shortcode being broken on both back-end and front-end.
 {{{
 [video width="640" height="480"
 mp4="https://videos.files.wordpress.com/GbdhpGF3/video-25313e7f01_hd.mp4"

 poster="https://i2.wp.com/videos.files.wordpress.com/GbdhpGF3/video-
 25313e7f01_scruberthumbnail_0.jpg"][/video]
 }}}

 The same happens with the gallery shortcode or any wpview shortcode where
 the shortcode text is a bit long.
 (e.g. [gallery link="file" columns="5" size="large"
 ids="495,499,498,533,664,638,577,575,497,773,943,670,668,496,494,487,479,673,675,676"
 orderby="rand"] )

 [[Image(http://i.imgur.com/mpY1xhN.gif)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38511>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list