why dont u try tinymce or fckeditor or some rich text editor like that.

-GTG


On 7/22/07, Howard Jones <[EMAIL PROTECTED]> wrote:


I'm not sure if this is something that jQuery can really help me with,
but I suspect it's something that someone here may have solved before.

I've just added some functionality to my map editing web app to allow
you to edit sections of the text config directly - it uses jQuery to
fetch a chunk of text, and presents it in a textarea, where it can be
edited and submitted back to the server. The problem is that there
doesn't seem to be a combination of styles that gets a proper
notepad-style textarea: no word-wraps, scroll-bars in both directions if
necessary.

"overflow: auto" or "overflow: scroll" takes care of the scrolling, but
it still word-wraps. "white-space: nowrap" doesn't make any difference.

In fact, it appears that the firefox textarea does wordwrap, but also
preserves the real cr-lf info somewhere, so it still works OK but looks
terrible.

Is there some magic involved in getting this to work? or, is there some
way to fake the textarea with something else?

Thanks in advance for any pointers... everything I found on the web
seemed to be people trying to use textareas as something else, and
getting *rid* of scrollbars! :-)

Howie

Reply via email to