[wp-trac] [WordPress Trac] #28951: Caption shortcode `class` attribute stripped by TinyMCE

WordPress Trac noreply at wordpress.org
Fri Jul 18 22:55:09 UTC 2014


#28951: Caption shortcode `class` attribute stripped by TinyMCE
--------------------------+-----------------------------------------
 Reporter:  dominicp      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------
Description changed by SergeyBiryukov:

Old description:

> A class attributed is listed as supported in the
> [http://codex.wordpress.org/Caption_Shortcode Codex] and it looks like
> support was added in this
> [https://core.trac.wordpress.org/changeset/27404 Changeset]. But, if I
> add one manually in text view, and switch back to the visual editor, the
> attribute is stripped.
>
> Unfortunately, I'm not familiar enough with the WP internal javascript to
> pinpoint exactly where this is happening.

New description:

 A class attributed is listed as supported in the
 [http://codex.wordpress.org/Caption_Shortcode Codex] and it looks like
 support was added in [27404]. But, if I add one manually in text view, and
 switch back to the visual editor, the attribute is stripped.

 Unfortunately, I'm not familiar enough with the WP internal javascript to
 pinpoint exactly where this is happening.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28951#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list