[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code

WordPress Trac noreply at wordpress.org
Fri Jun 9 01:32:50 UTC 2017


#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
--------------------------+--------------------
 Reporter:  dwrippe       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.8.1
Component:  Widgets       |     Version:  4.8
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by carasmo):

 It made a bunch of the credit card icons disappear (turn into a single
  ) and  `<span class="fa fa-cc-discover fa-2x" aria-
 hidden="true"></span>`. This below html for MailChimp, it displays as
 single line email input and submit button on the same line. When it's
 pasted into the new text widget, unless there are no line returns (making
 it very hard to read and edit) the form looks crappy since there are now p
 tags surrounding the input and button.

 [[Image(https://user-
 images.githubusercontent.com/1124594/26957265-e28714b0-4c91-11e7-9582-315dfbfbe3e3.png)]]

 {{{
 <p>
 Stay updated with our latest news and specials. We never sell your
 information and you can unsubscribe at any time.
 </p>

 <div class="custom-form-class">
         <form action="#" method="post" name="mc-embedded-subscribe-form">

                 <label class="screen-reader-text" for="mce-EMAIL-b">Email
 </label>
                 <input id="mce-EMAIL-b" class="required email"
 name="EMAIL" required="" type="email" value="" placeholder="Email
 Address*" />

                 <input class="button" name="subscribe" type="submit"
 value="Go!" />

         </form>
 </div>

 }}}

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


More information about the wp-trac mailing list