[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
White Spaces in Long Text Editor  XML
Forum Index -> Development
Author Message
unger

Power User

Joined: 22/07/2008 05:19:28
Messages: 261
Offline

Hi,

when closing the long text editor carriage returns are lost.
Is the a way to preserve all white spaces?

Ragards,
Joachim
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

I assume you are talking about the long text editor in the Layout Editor.

Yes this is true - by intention! The long text editor only can do what you also can do within the field below. In the field you cannot key in "return" so you can also not input "return" in the popup.

Regards, Björn

Björn Müller, CaptainCasa GmbH
unger

Power User

Joined: 22/07/2008 05:19:28
Messages: 261
Offline

In the case of the ui5_html-element there should be an exception of that behavior. Even small HTML-text is hard to read without any formatting through linefeeds.

Code:
 <div id="pos">Deine Position wird ermittelt...</div>
 <script>navigator.geolocation.getCurrentPosition(function(position){             document.getElementById('pos').innerHTML = 'Latitude: '+position.coords.latitude+' / Longitude: '+position.coords.longitude;
 }, function(){document.getElementById('pos').innerHTML = 'Deine Position konnte leider nicht ermittelt werden';
 });
 </script>
 


Regards,
Joachim

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

...I would always store such long texts inside some property file ;-)

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team