[wp-trac] [WordPress Trac] #35434: Copy-paste image with srcset makes replace-image features break
WordPress Trac
noreply at wordpress.org
Thu Jan 21 17:42:00 UTC 2016
#35434: Copy-paste image with srcset makes replace-image features break
--------------------------+------------------------------
Reporter: programmin | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.4.1
Severity: normal | Resolution:
Keywords: | Focuses: ui, javascript
--------------------------+------------------------------
Changes (by joemcgill):
* owner: => joemcgill
* status: new => reviewing
Comment:
Hi @programmin,
We generally respect user added content as long as it's not insecure. So
if a user adds HTML for an image in the editor that includes a `srcset`,
we chose to leave it alone and make sure the internal `srcset` functions
don't overwrite what the user added.
However, that doesn't address your concern, which is that replacing the
image in the editor should also update (or remove) any previous `srcset`
and `sizes` attributes. Is that correct?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35434#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list