You are not logged in.
How do I change the textarea background?
I know it's a pagestyle somewhere, but where do I put this?
If someone would kindly tell me in detali, I need my background to be black, as that is the color of the page they are editing.
Offline
hello
my suggestion:
search the following line in your html-header:
(i suppose you use the nightly build)
xinha_config = xinha_config ? xinha_config : new HTMLArea.Config();
after that, you can add this line:
xinha_config.pageStyle = HTMLArea._geturlcontent('/path/xinha.css');
you can set the body background in that css -file.
guenther
Offline
Can we do that in a live editor?
I tried this:
editor = Xinha.getEditor("myTextarea");
doc=editor._doc;
doc.getElementsByTagName('body')[0].style.backgroundColor='#ffff00';
and
xinha_editors.myTextarea._doc.style.backgroundColor='#ffff00';
but that only changes the background color in text modus.
Last edited by Ecco (2011-12-02 04:33:27)
Offline