[wp-trac] [WordPress Trac] #24155: Visual editor adds span tags with style by itself

WordPress Trac noreply at wordpress.org
Mon Apr 22 12:12:26 UTC 2013


#24155: Visual editor adds span tags with style by itself
--------------------------+------------------------
 Reporter:  GuillaumeP    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  TinyMCE       |     Version:  3.5.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |
--------------------------+------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * component:  General => TinyMCE
 * milestone:  Awaiting Review =>


Old description:

> Hello everyone,
>
> I have noticed that the wordpress visual editor adds span tags with no
> reason. It happens when I create a bullet list or when I make a link.
>
> I am able to reproduce the bug for bullet lists but I cant do it for the
> links. It seems to happen randomly.
>
> To reproduce the bug for bullet list, I start with a title H3 then I
> click on the bullet list button. I start to write the list and then, when
> i save the draft, the first line has a span tag. This bug happens in
> several websites. Sometimes i get something like this :
>
> <li><span style="line-height: 12.997159004211426px;"><strong>
> or
>
> <span style="font-size: 13px; line-height: 19px;">
>
> I dont paste text from word to the visual editor. I write directy in the
> visual editor.
>
> For links, I dont know when it happens, but I sometimes have a <span
> style="color:#333333">.
>
> First, I thought i had the same bug than this one :
> http://core.trac.wordpress.org/ticket/23461 which said it was a "long
> standing bug in WebKit"
> but i had this bug in Firefox too which is not using Webkit but Gecko.
>
> Then i thought it was a bug with the add_editor_style() function but it's
> not that too. I commented the function but the bug still happens.

New description:

 Hello everyone,

 I have noticed that the wordpress visual editor adds span tags with no
 reason. It happens when I create a bullet list or when I make a link.

 I am able to reproduce the bug for bullet lists but I cant do it for the
 links. It seems to happen randomly.

 To reproduce the bug for bullet list, I start with a title H3 then I click
 on the bullet list button. I start to write the list and then, when i save
 the draft, the first line has a span tag. This bug happens in several
 websites. Sometimes i get something like this :

 <li><span style="line-height: 12.997159004211426px;"><strong>
 or

 <span style="font-size: 13px; line-height: 19px;">

 I dont paste text from word to the visual editor. I write directy in the
 visual editor.

 For links, I dont know when it happens, but I sometimes have a <span
 style="color:#333333">.

 First, I thought i had the same bug than this one : #23461 which said it
 was a "long standing bug in WebKit"
 but i had this bug in Firefox too which is not using Webkit but Gecko.

 Then i thought it was a bug with the add_editor_style() function but it's
 not that too. I commented the function but the bug still happens.

--

Comment:

 > First, I thought i had the same bug than this one : #23461 which said it
 was a "long standing bug in WebKit" but i had this bug in Firefox too
 which is not using Webkit but Gecko.

 #23461 was closed as a duplicate of #17154. This appears to be a
 manifestation of the same bug, let's continue the discussion there.

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


More information about the wp-trac mailing list