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

WordPress Trac noreply at wordpress.org
Thu May 2 19:22:41 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 lafayettenuke):

 I can recreate this in two ways using Chrome 26.0.1410.43 on Mac OS 10.7.5

 The Bulleted List
 * Add three lines of text to a post: One. Two. Three. (each word should be
 on its own line)
 * Use the "bullet" command to turn "One" into the first item of an
 unordered list.
 * Delete the space between "One" and "Two" so they are on the same line.
 * Hit return after "One". "Two" gets its own line, and its own bullet.

 After doing this, Chrome will have added an inline style to the first
 bullet:

 {{{
 <span style="font-size: 16px;">TEXT GOES HERE</span>
 }}}

 The Paragraph
 * Add three paragraphs.
 * Go to the first line of the second paragraph. Using your mouse, select
 everything from the beginning of the first paragraph (just the space at
 the
 * beginning of the paragraph; not the text) up to the top of the first
 paragraph (all text should be included).
 * Hit delete.

 Your new first paragraph will now be surrounded by a span rather than a P
 tag. The code will be:

 {{{
 <span style="font-size: 16px;">TEXT GOES HERE</span>
 }}}

 Note: This doesn't have to be the first paragraph. It will anywhere in
 post, and it doesn't have to be exactly as I've spelled out above --
 depending on how you select a paragraph of text and delete it, it's
 possible for a SPAN tag to get inserted.

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


More information about the wp-trac mailing list