Announcement

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

#1 2007-11-09 00:03:29

keress
New member
Registered: 2007-11-08
Posts: 2

Using site's CSS in Xinha

I'd like to attach my site's style sheet to Xinha so that what we see in the editor will match what we'll see on the site.  Is there somewhere I can add it in? 

Thanks

Offline

#2 2007-11-09 12:48:56

Chuck
Xinha Community Member
Registered: 2005-02-25
Posts: 29

Re: Using site's CSS in Xinha

In your config file, add something like :

xinha_config.pageStyle = "@import url(/css/main.css);";

And make sure to use the correct path to your file

Offline

#3 2007-11-20 16:13:06

keress
New member
Registered: 2007-11-08
Posts: 2

Re: Using site's CSS in Xinha

Thanks for the reply.  I'm running this in Open Realty.  Do you mean OR's config file?  I don't see one for Xinha.

Offline

#4 2007-11-26 16:49:32

Chuck
Xinha Community Member
Registered: 2005-02-25
Posts: 29

Re: Using site's CSS in Xinha

Ah, yeah, sorry. I took for granted you had the xinha initialisation code in a seperate JS file but it might as well be an inline javascript declaration.

Just search for the piece of Javascript code that reads like Xinha.makeEditors and Xinha.startEditors, your config lines should be just before that somewhere.

Hope this makes sense, I've never used Open Realty so I don't really know how Xinha is hooked to it...

Offline

Board footer

Powered by FluxBB