[wp-trac] [WordPress Trac] #35219: Extra HTML added to visual text editor

WordPress Trac noreply at wordpress.org
Mon Dec 28 19:54:54 UTC 2015


#35219: Extra HTML added to visual text editor
-------------------------------+------------------------------
 Reporter:  tgaribaldi         |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  TinyMCE            |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by azaozz):

 I can't reproduce this either (in 4.4 and trunk). The only change I see
 when switching Text => Visual and back is that TinyMCE wraps the content
 of the `<script>` tag with `<![CDATA[ ... ]]>`.

 Perhaps a bit more info will shed some light on this. Assuming you're
 running WordPress 4.4:
 - Does the duplication happen when you switch Text => Visual and back? Or
 does it happen only after saving/publishing the post?
 - Does it make any difference if you remove the HTML comments?
 - The "media" TinyMCE plugin replaces the iframe with a placeholder
 (that's the grey square you see in the Visual editor). If the duplication
 happens on switching editors, does it make a difference if you disable
 that plugin by commenting it out in wp-includes/class-wp-editor.php:
 https://core.trac.wordpress.org/browser/tags/4.4/src/wp-includes/class-wp-
 editor.php#L391.

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


More information about the wp-trac mailing list