[wp-trac] [WordPress Trac] #38628: Pasting an image URL inside for a shortcode unexpectedly displays the image

WordPress Trac noreply at wordpress.org
Wed Nov 2 20:31:30 UTC 2016


#38628: Pasting an image URL inside for a shortcode unexpectedly displays the image
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  TinyMCE          |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+-----------------------------
 Given a shortcode in the TinyMCE like:

 {{{
 [image url=""]
 }}}

 When I paste an image URL `http://example.org/image.jpg` inside of the
 `url=""` attribute, I'd expect to see:

 {{{
 [image url="http://example.org/image.jpg"]
 }}}

 Instead, I see the image URL expanded to its visual representation.

 It seems like `smartInsertContent()` should be disabled when the selection
 is inside of a shortcode.

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


More information about the wp-trac mailing list