Feature #17840
closed
Non Breaking Spaces in HTML-Area
Added by Matthias Kappenberg almost 17 years ago.
Updated over 16 years ago.
Description
When entering normal text in HTML-Area RTE with no aligment or any classes or styles I get a "nonbreaking space ( )" on empty lines:
<p> </p>
, which is wanted by me.
But if I've assigned, let's say "centered" via the "align center button", the "p align=center" is holded in the next lines, but empty lines are looking like this:
<p align="center"></p>
without any "nbsp", which means that there is no "empty line" visible.
Is it possible to get always a "nbsp" on empty paragraphs, even if a class or something else is applied to the p-tag?
I know, that a "shift enter" produces a <br> ;-)
(issue imported from #M6821)
Files
I like to sponsor this Feature, but where should I send my money to :-?
Yes, that's right. "nbsp" is inserted after saving.
But as said, only if the p tag has no class,... added.
To "where to send money" I found the link in the manual :-)
Should I use Paypal->Send Money?
And there the email from the manual (stanislas.rolland@fructifor.ca )?
Yes, you can use Paypal or moneybookers.
Thanks.
The attached patch will solve the issue when used with TYPO3core SVN trunk revision 2864+.
hmmmm,
patched:
../t3lib/class.t3lib_parsehtml_proc.php
line 1288
added the
&& !preg_match('/\<([^>]*)?( align| class| style| id| title| dir| lang| xml:lang)([^>]*)?>/si', trim($divSplit[$k])
but same behaviour as before :-?
Typo3 v4.1.5
Sorry, this will not work with TYPO3 4.1.5. It requires SVN trunk revision 2864+. If you are not a situation where you can use such version of TYPO3, I think you will have to wait TYPO3 4.2 alpha3 or subsequent. Or I will try to create another small patch for the RTE part later this week. Sorry about that.
Committed to SVN TYPO3core trunk revision 2909 (for inclusion in TYPO3 4.2 alpha3).
Also available in: Atom
PDF