[wp-trac] [WordPress Trac] #32160: WYSIWYG editor deletes span without class or id

WordPress Trac noreply at wordpress.org
Wed Apr 29 05:50:25 UTC 2015

#32160: WYSIWYG editor deletes span without class or id
 Reporter:  Nikschavan    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:  javascript

Comment (by Nikschavan):

 I am creating customizations for a client, and the requirement is some of
 the words should have different styling, I wanted to keep it simple with
 just <span> tags so that he does not have to remember class names or id to
 put it in. I will be writing CSS for the span inside my wrapper class so
 that it does not affect any other spans on his site.

 Is there not any other solution other than directly skipping this spans?
 As it is valid markup, shouldn't this be allowed?

Ticket URL: <https://core.trac.wordpress.org/ticket/32160#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list