Bug #52470
closedIn Chrome RTE inserts weird SPAN tags
100%
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
Updated by Tobias Wollender almost 11 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.
Updated by Sascha Löffler almost 11 years ago
As a workaround add this to your pageTSConfig:
RTE.default.proc { entryHTMLparser_db { tags { span.fixAttrib.style.unset = 1 span.rmTagIfNoAttrib = 1 } } }
Updated by Urs Braem almost 11 years ago
I can confirm this in Chrome 33, <span style="font-size:12px"></span> is added - with TYPO3 6.1
Updated by Urs Braem almost 11 years ago
- Target version set to 6.2.0
As this affects 6.x too, the version might be updated
Updated by Falk no-lastname-given over 10 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.
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Stanislas Rolland about 10 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.
Updated by Stephan Vidar about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 285779692c86218e78db3d01782e68a92bac4140.
Updated by Stanislas Rolland about 10 years ago
- Status changed from Resolved to New
- Assignee set to Stanislas Rolland
- Target version changed from 6.2.0 to next-patchlevel
Updated by Stanislas Rolland about 10 years ago
Well, span elements still get inserted inside list elements, sometimes...
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset f8dab63151acb7dc8e7550283dd15c71d28a3f5f.
Updated by Stanislas Rolland about 10 years ago
- Status changed from Resolved to New
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset b65517bf0757f688014cb410ae50952fb0e14b4e.
Updated by Gerrit Code Review about 10 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
Updated by Gerrit Code Review about 10 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
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset df600c6927b2b76759098331d10ac9b646105dea.