Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Realtime Text Editor

Status
Not open for further replies.

bataraguru

Programmer
Jun 4, 2002
37
MY
Hi,
I want to make the textfield editable realtime.
For example in yahoo and hotmail.
When you highlight a text and click &quot;bold&quot;, at the begining of the text highlighted will be added <b> and at the end will be added </b>.
There are some WYSIWYG editor but all are rich text format.
Or can I change enter(new line) to <br>. Example, when user enter after a line in the textfield there will be a <br> added after the &quot;enter&quot;.
I hope my question will not confusing anybody.

Regards,
- zaidi -
 
Hi pcorreia,
Thanks for the links, for your information.
I just want to change the state in the TextField.
All of this RichText editing involves HTML and iFrame.
If you have any links that have information on converting an ASCii code (such as &quot;enter&quot; or &quot;space&quot;) to <br>.
For example I've type something in the TextField and press enter to make a new line, when I've submitted the data in the textfield and view it, there is no breakline, all of my text appear in one line only. To make it clear, what I mean is almost the same when you press &quot;Preview Post&quot; in this forum. If you press enter (in the textfield - input) the text will appear in the new line...

Regards,
- zaidi -
 
try using Replace() function:

form.textfield = Replace(form.textfield, Chr(10), &quot;<br>&quot;, &quot;all&quot;)

Or, try saving it as HTMLEditFormat(form.textfield) Sylvano
dsylvano@hotmail.com
 
Hi WWebspider,
Your tips help me dude..
Thanks a lot.. Forgot about the replace function.. *duh*

Regards,
- zaidi -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top