[wp-trac] [WordPress Trac] #35434: Copy-paste image with srcset makes replace-image features break

WordPress Trac noreply at wordpress.org
Wed Jan 13 05:18:20 UTC 2016


#35434: Copy-paste image with srcset makes replace-image features break
----------------------------+-----------------------------
 Reporter:  programmin      |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Editor          |    Version:  4.4.1
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 1) Go to a page with some large responsive image, select around it and
 copy

 2) Paste into TinyMCE editor, image looks fine (but has srcset!).

 3) Click the image edit button, click replace button and choose another
 image.

 For this, and other cases where a plugin or feature changes the src of an
 image tag, it doesn't actually visibly change it because of the leftover
 srcset most browsers look at. I thought srcset was disallowed in editor
 and database since the theme and plugin should be able to filter the final
 behavior when the_content is rendered. Seems this should be enforced on
 paste at least.

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


More information about the wp-trac mailing list