Project

General

Profile

Actions

Bug #52470

closed

In Chrome RTE inserts weird SPAN tags

Added by Stephan Vidar over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2013-10-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If the bulleted list is applied to simple text, HTML code looks like this:

<ul><li><span style="line-height: 1.5em;">Lorem ipsum...</span></li></ul>
The phenomenon occurs in Chrome 30 and Opera 16. These browsers use the same rendering engine. Maybe this is the reason?

TYPO3 4.5.30


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #59562: WebKit may insert a span element when backspacing an headingClosedStanislas Rolland2014-06-13

Actions
Related to TYPO3 Core - Bug #67348: RTE inserts <span class="line-height: xx"> in ChromeClosed2015-06-08

Actions
Actions #1

Updated by Tobias Wollender about 10 years ago

I have a similar behaviour in Chrome and the RTE (TYPO3 6.2) when using RTE.default.contentCSS and some definitions for the body in the external file. E. g. something like this:

body {
background: #efeedf !important;
color: #333 !important;
font-family: Arial, sans-serif;
font-size: 15px !important;
}

If i copy and paste some text - from the RTE to the RTE - I get <span> tags with font-size definitions applied to the pasted text. And it also happens if I try to make normal text out of an unordered list. If I delete the body css part from the external css file, everything works fine.

Actions #2

Updated by Sascha Löffler about 10 years ago

As a workaround add this to your pageTSConfig:

RTE.default.proc {
    entryHTMLparser_db {
        tags {
            span.fixAttrib.style.unset = 1
            span.rmTagIfNoAttrib = 1
        }
    }
}

Actions #3

Updated by Urs Braem almost 10 years ago

I can confirm this in Chrome 33, <span style="font-size:12px"></span> is added - with TYPO3 6.1

Actions #4

Updated by Urs Braem almost 10 years ago

  • Target version set to 6.2.0

As this affects 6.x too, the version might be updated

Actions #5

Updated by Falk no-lastname-given over 9 years ago

This issue is still present in Chrome 36 with TYPO3 6.2.4!

Chrome is a very popular browser and many of our clients using chrome so this issue should be solved.

Actions #6

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33391

Actions #7

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33392

Actions #8

Updated by Stanislas Rolland over 9 years ago

  • Status changed from Under Review to New

Please test this change: https://review.typo3.org/#/c/33392/ and report in which browser you tested.

While this should fix the case of the list insertion, I was not able to reproduce the problem on paste.

Please explain the type of paste operation being performed: plain text or other.

Actions #9

Updated by Stephan Vidar over 9 years ago

I have tested this change: https://review.typo3.org/#/c/33392/ and the problem with list insertion is solved! I also could not reproduce the problem on paste.

Browser: Chrome 38 (Win)
TYPO3 6.2.5

Actions #10

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33391

Actions #11

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33391

Actions #12

Updated by Stanislas Rolland over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Stanislas Rolland over 9 years ago

  • Status changed from Resolved to New
  • Assignee set to Stanislas Rolland
  • Target version changed from 6.2.0 to next-patchlevel
Actions #14

Updated by Stanislas Rolland over 9 years ago

Well, span elements still get inserted inside list elements, sometimes...

Actions #15

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33657

Actions #16

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33658

Actions #17

Updated by Stanislas Rolland over 9 years ago

  • Status changed from Under Review to Resolved
Actions #18

Updated by Stanislas Rolland over 9 years ago

  • Status changed from Resolved to New
Actions #19

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33772

Actions #20

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33772

Actions #21

Updated by Stanislas Rolland over 9 years ago

  • Status changed from Under Review to Resolved
Actions #22

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33773

Actions #23

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33773

Actions #24

Updated by Stanislas Rolland over 9 years ago

  • Status changed from Under Review to Resolved
Actions #25

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF