Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-03-19 13:17:41

tuggie
New member
Registered: 2007-03-19
Posts: 1

Tab Key

This is probably a stupid question but here goes anyway.

I have a page in the web site I am developing containing a xihna textarea that will be used by customers to enter formated notes i.e. thay want something that they can use like a wordprocessor.

My customers would like pressing a tab key in the xinha textarea to insert a tab character or something that behaves as a tab character into the text. Is this possible to do or does anyone have any alternative suggestions as to how to acheive this?

As far as I have been able to find out so far, pressing tab in IE causes the cursor to move to the next item in the page, whereas in Firefox it is converted to 3 spaces, which of course meeans that lines with differing amounts of text in the do not line up under each other.

Offline

#2 2007-03-19 14:11:43

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Tab Key

It is not possible in HTML to emulate the behaviour of tabs like in a wordprocessor. The only way to align lines is using tables, which of course is not so convenient

Offline

#3 2007-03-27 18:04:03

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Tab Key

Just incidently found this, which does work like a tab (     actually is a tab)

<p>Text<span style="white-space:pre">    </span>Text</p>

EDIT: the empty space above is the numerical entity for the tab character which is &_#9; without the _ (don't know how to enter it smile)

Last edited by ray (2007-03-27 18:09:16)

Offline

Board footer

Powered by FluxBB