Project

General

Profile

Bug #31579 » htmlarea.patch

Juris Treibahs, 2011-11-04 13:51

View differences:

/typo3/sysext/rtehtmlarea/htmlarea/htmlarea_corrected.js 2011-11-03 20:12:42.000000000 +0200
case 'textmode':
// Collapse repeated spaces non-editable in wysiwyg
// Replace leading and trailing spaces non-editable in wysiwyg
return this.textArea.getValue().
replace(/[\x20]+/g, '\x20').
replace(/^\x20/g, ' ').
replace(/\x20$/g, ' ').
replace(/>\x20/g, '> ').
replace(/\x20</g, '&nbsp;<');
return this.textArea.getValue();
default:
return '';
}
(2-2/2)