Re: How to force IE-Win to accept Unix newline
Re: How to force IE-Win to accept Unix newline
- Subject: Re: How to force IE-Win to accept Unix newline
- From: Chuck Hill <email@hidden>
- Date: Tue, 26 Apr 2005 10:14:52 -0700
Got it. Have you considered using a WYSIWYG editor? This one is
free, works well, and almost :-) works with Safari.
http://tinymce.moxiecode.com/
Chuck
On Apr 26, 2005, at 10:05 AM, Thomas Pelaia wrote:
I do that and more now. There are a couple problems with this
approach. The goal is to preserve the author's intended text. For
example, authors write their text in a TextArea element and they add
spaces and line feeds and such to lineup their text as they wish.
Currently my component has to convert multiple spaces and line feeds
into the appropriate HTML to render a reasonable representation of the
author's intent. However, it is still not perfect, and doing this
comes at a cost of performance. Furthermore, I would now like to
allow users to post entries in HTML. The entries have a switch to
indicate whether they are plain text or HTML. The simplest way to do
this is to create a custom element that generates a response with the
appropriate MIME type and display this element inside an IFrame using
WOIFrame. Then I can get rid of the code that converts text to HTML
and I can create a common way of providing both plain text and HTML
content. This approach is nice and simple. However, the only issue I
am facing is that IE on Windows does not handle Unix line endings
properly within plain text documents.
_________
Tom Pelaia
Spallation Neutron Source, Accelerator Systems Division
Oak Ridge National Laboratory
On Apr 26, 2005, at 12:50 PM, Chuck Hill wrote:
I think it would be best to convert them to <br /> on the way out.
Chuck
On Apr 26, 2005, at 6:51 AM, Thomas Pelaia wrote:
I have written a text component to display a string as plain text so
I can imbed user statements in an IFrame on a page preserving spaces
and such as intended by the user. It works very well, except that
IE on Windows does not handle the Unix newlines properly because
Windows uses CRLF for its line endings and a simple newline means
nothing to IE. Since most entries will be made on Linux machines
and many users view the entries using IE on Windows this is an
issue. Is there a way to force IE to interpret Unix newlines as
they were intended?
thanks,
-tom
_________
Tom Pelaia
Spallation Neutron Source, Accelerator Systems Division
Oak Ridge National Laboratory
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden