[wp-trac] [WordPress Trac] #42222: editor removing pre tag

WordPress Trac noreply at wordpress.org
Sat Oct 14 17:08:16 UTC 2017


#42222: editor removing pre tag
--------------------------+-----------------------------
 Reporter:  joyously      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When in Text mode, I enter a `<pre>` tag, with text in it all spaced out.
 Switch to Visual mode, and the `pre` tag is removed, and the text spacing
 is removed.
 Switch back to Text mode, there is no `pre` tag or spacing.

 I'm not sure when this changed. I only noticed it because I wanted to test
 editor styles and switched to Visual mode (I usually stay in Text mode all
 the time).
 I got this in the trunk version, but also on a site that is using WP
 4.7.6.

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


More information about the wp-trac mailing list