Project

General

Profile

Actions

Bug #32263

closed

HTML entity   is inserted before and after HTML Tags

Added by Dieter Bunkerd over 12 years ago. Updated over 6 years ago.

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

100%

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

Description

If an editor marks text for making it bold, italic and so on,
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
adds non breakable spaces before and after each HTML tag. An editor is unable to delete them again, not even in HMTL mode.

Editing the file (from line 2235)

return this.textArea.getValue().
replace(/[\x20]+/g, '\x20').
replace(/^\x20/g, ' ').
replace(/\x20$/g, ' ');
// replace(/>\x20/g, '> ').
// replace(/\x20&lt;/g, &#039;&amp;nbsp;<');

saves the problem. But what are these two replacements meant to do anyway?

TYPO3 4.6.1
htmlarea version 2.2.1

also present in
TYPO3 4.5.8
htmlarea version 2.1.7


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #61747: Depending on how we delete something in RTE, we get different results after savingClosedStanislas Rolland2014-09-19

Actions
Has duplicate TYPO3 Core - Bug #33170: RTE chaotic &nbsp; spreadingClosed2012-01-13

Actions
Has duplicate TYPO3 Core - Bug #31579: Copied MS Word content becomes broken after saving and opening text content elementClosedStanislas Rolland2011-11-04

Actions
Follows TYPO3 Core - Bug #16217: Leading and trailing blanks can't be editedClosedStanislas Rolland2006-06-06

Actions
Actions

Also available in: Atom PDF