Feature #17840
closedNon Breaking Spaces in HTML-Area
0%
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
Updated by Matthias Kappenberg almost 17 years ago
I like to sponsor this Feature, but where should I send my money to :-?
Updated by Stanislas Rolland almost 17 years ago
Thank you for offering to sponsor this issue. You may send your contribution as indicated on this page:
http://typo3.org/documentation/document-library/extension-manuals/rtehtmlarea_manual/1.0.0/view/8/1/
I assume that you get those non breakable spaces after saving, right?
Updated by Matthias Kappenberg almost 17 years ago
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 )?
Updated by Stanislas Rolland almost 17 years ago
Yes, you can use Paypal or moneybookers.
Thanks.
Updated by Stanislas Rolland almost 17 years ago
The attached patch will solve the issue when used with TYPO3core SVN trunk revision 2864+.
Updated by Matthias Kappenberg almost 17 years ago
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
Updated by Stanislas Rolland almost 17 years ago
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.
Updated by Stanislas Rolland almost 17 years ago
Committed to SVN TYPO3core trunk revision 2909 (for inclusion in TYPO3 4.2 alpha3).