Announcement

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

#1 2005-04-14 19:26:41

con4mity
Xinha Community Member
Registered: 2005-04-06
Posts: 23

how to change the textarea background

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

#2 2005-04-15 02:18:27

gea
New member
Registered: 2005-03-03
Posts: 4

Re: how to change the textarea background

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

#3 2011-12-02 04:33:03

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: how to change the textarea background

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

#4 2011-12-02 07:08:00

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: how to change the textarea background

Eh... never mind it works ^^

editor._doc.getElementsByTagName('body')[0].style.backgroundColor='#ffff00';

Offline

Board footer

Powered by FluxBB