Topic: Can you help me? Textarea and colors :( (Read 2212 times)
Total Zero
Gender:
Posts: 5
38 credits Members referred : 0
« on: Oct 13, 2008, 07:10:34 pm »
I have the following problem: I have a textarea with a basic CSS and a default text color but wat i need is to make one part of the content of this texarea in a different color. Realy i don't know is it possible. I need to do that "onLoad" of the textarea. It's like the WYSIWYG editors but i only need a part of the string to be in different color (nothing else /for now /).
Thanks in advance.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #1 on: Oct 13, 2008, 09:34:40 pm »
I am afraid you can't use a color for a part of a textarea but only for the whole textarea
I am afraid you can't use a color for a part of a textarea but only for the whole textarea
I'm aware of that but WYSIWYG editors are able to do it (but as far as i know with some iframe).
I think that i can't use WYSIWYG editor for this becouse i need to color the string dinamicly . But i'll think of that option thanks Olaf.
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #4 on: Oct 14, 2008, 08:52:02 pm »
look tinymce or others are not showing you a textarea, they show you a box manipulated with JS. They use the textarea as an container which is able to post content
Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 619
5660 credits Members referred : 0
My name is Bong, James Bong
Posts: 11
80 credits Members referred : 0
« Reply #6 on: Apr 18, 2009, 01:24:27 pm »
Get yourself a firebug and digg the html code with it. You might be able to see what textarea is being used at the background and what tags are being used to color some text. Then simply add those tags yourself.. and ask your wycwyg editor to refresh or something...
Working with text selects in javascript is a pain
Novice Spammer
Posts: 102
652 credits Members referred : 0
« Reply #7 on: Jul 13, 2011, 06:46:32 pm »
they display you a carton manipulated with JS. They use the textarea as an canister which is adept to mail content
Sandwich Artist
Posts: 25
174 credits Members referred : 0
« Reply #8 on: Aug 17, 2011, 02:21:54 pm »
i think u can do this using JavaScript..
Cyberpunk Wannabe
Posts: 44
300 credits Members referred : 0
« Reply #9 on: Aug 18, 2011, 11:34:44 am »
you need to use tinymce or something
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=8091