Project

General

Profile

Actions

Feature #17840

closed

Non Breaking Spaces in HTML-Area

Added by Matthias Kappenberg almost 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-11-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

rtehtmlarea_bugfix_6821.patch (1.17 KB) rtehtmlarea_bugfix_6821.patch Administrator Admin, 2008-01-06 22:01
Actions #1

Updated by Matthias Kappenberg almost 17 years ago

I like to sponsor this Feature, but where should I send my money to :-?

Actions #2

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?

Actions #3

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 ( )?

Actions #4

Updated by Stanislas Rolland almost 17 years ago

Yes, you can use Paypal or moneybookers.

Thanks.

Actions #5

Updated by Stanislas Rolland almost 17 years ago

The attached patch will solve the issue when used with TYPO3core SVN trunk revision 2864+.

Actions #6

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

Actions #7

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.

Actions #8

Updated by Stanislas Rolland almost 17 years ago

Committed to SVN TYPO3core trunk revision 2909 (for inclusion in TYPO3 4.2 alpha3).

Actions

Also available in: Atom PDF