#24155 closed defect (bug) (duplicate)
Visual editor adds span tags with style by itself
Reported by: | GuillaumeP | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5.1 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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.
Change History (7)
#1
@
12 years ago
- Component changed from General to TinyMCE
- Description modified (diff)
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
#2
@
12 years ago
Are you sure it is the same bug ? I have at least one website which is doing the same thing without TinyMCE editor
#3
follow-up:
↓ 4
@
12 years ago
Well, you specifically refer to Visual editor multiple times in the ticket description. The default visual editor in core is TinyMCE.
- Does this happen in Text editor too?
- Can you reproduce the issue on a clean install (with Twenty Twelve or Twenty Eleven theme activated and all plugins disabled)?
#4
in reply to:
↑ 3
;
follow-up:
↓ 5
@
12 years ago
Replying to SergeyBiryukov:
Well, you specifically refer to Visual editor multiple times in the ticket description. The default visual editor in core is TinyMCE.
- Does this happen in Text editor too?
- Can you reproduce the issue on a clean install (with Twenty Twelve or Twenty Eleven theme activated and all plugins disabled)?
I was actually just looking at this bug too since it was reported by WordPress.com VIP users.
- No, I was not able to reproduce it in the text editor. It only appears if you add a list in visual mode, and when do you do that, the <span> tag appears around the first line of the list.
- I was able to reproduce it in a clean install running trunk.
#23461 was closed as a duplicate of #17154. This appears to be a manifestation of the same bug, let's continue the discussion there.