[wp-trac] [WordPress Trac] #17154: TinyMCE inserts spans with font-styles atributes

WordPress Trac noreply at wordpress.org
Mon Apr 29 21:22:24 UTC 2013


#17154: TinyMCE inserts spans with font-styles atributes
-------------------------------+------------------------------
 Reporter:  thomask            |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  TinyMCE            |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by azaozz):

 As mentioned above this is a WebKit bug. It happens when executing some
 built-in contenteditable commands, `InsertUnorderedList` and
 `InsertOrderedList` always trigger it. If there are any `font-*`
 declarations for the element that is converted to a list, WebKit wraps the
 text in a span with inline style.

 It seems this doesn't happen when the `font` css declaration is combined.
 We can use that as a workaround pending more testing to confirm this works
 in all possible cases. That would also mean all themes that have `editor-
 style.css` would have to be updated.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17154#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list