[wp-trac] [WordPress Trac] #28993: <img> srcset attribute is stripped when switching from text to visual tab in the editor
WordPress Trac
noreply at wordpress.org
Mon Sep 29 22:43:43 UTC 2014
#28993: <img> srcset attribute is stripped when switching from text to visual tab
in the editor
--------------------------+------------------------------
Reporter: kirillcool | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.9.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by mattheu):
+1
I think this issue should probably be fixed upstream in TinyMCE itself - I
have opened a pull request on github to add this -
https://github.com/tinymce/tinymce/pull/428
In the mean time - heres a patch that fixes it.
Note - I have also done this in the past by adding it to
{{{valid_elements}}} using the {{{tiny_mce_before_init}}} filter, but I
think it would be best to avoid doing this in core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28993#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list