Announcement

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

#1 2005-12-16 09:08:38

bilbo_b
Xinha Community Member
Registered: 2005-12-02
Posts: 13
Website

Stylist wont load external stylheet

hello everybody. i have here a problem the stylist plugin. when i use the internal stylesheet (all in one line):
         xinha_config.stylistLoadStyles('pre.Quelltext{ background-color: #FAFAFA; border-color: #D1D7DC; border-width: 1px; border-style: solid; color: #006600; font-size: 12px; font-family: Courier,"Courier New",sans-serif;} table.Tabelle {background-color: #b1b1b1} td.kopf {color: #fff; font-size: 11px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; font-weight: bold; background-color: #434242; border-top: 1px solid white; border-left: 1px solid white} td.zeile1 {font-size: 11px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; background-color: #e9e9e9; border-top: 1px solid white; border-left: 1px solid white} td.zeile2{font-size: 11px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; background-color: #cde4f0; border-top: 1px solid white; border-left: 1px solid white} p.zitat{ font-family: Times, "Times New Roman"; font-style: italic; background-color: #ede9e1; margin-right: 7px; margin-left: 7px; padding: 3px; border-style: groove; border-width:2px; border-color: white }', {'table.Tabelle':'Tabelle Hintergund', 'td.kopf':'Tabelle Kopf', 'td.zeile1':'Tabelle Zeile 1', 'td.zeile2':'Tabelle Zeile 2', 'p.zitat':'Zitat', 'pre.Quelltext':'Quelltext'});

all works fine, i see a button for every style in the stylist pane.

but when i will use the external reference, i dont see any style buttons in my pane:

xinha_config.stylistLoadStylesheet('stylist.css');

this should load the example stylist.css, but nothing happens. the stylist.css is in the same directory as the calling html file.

how can i use this external stylsheet ?


[url=http://www.pfohlnet.de]pfohl://NET[/url]

Offline

#2 2005-12-18 09:01:17

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Stylist wont load external stylheet

Use absolute URLs.


James Sleeman

Offline

#3 2005-12-19 14:50:16

bilbo_b
Xinha Community Member
Registered: 2005-12-02
Posts: 13
Website

Re: Stylist wont load external stylheet

and what for a uri could this be, when the *.css is in the same folder as the calling *,html (*.php) file ?


[url=http://www.pfohlnet.de]pfohl://NET[/url]

Offline

#4 2005-12-21 20:25:15

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Stylist wont load external stylheet

/path/to/your/stylesheet.css


James Sleeman

Offline

#5 2006-01-20 13:38:16

hsteckylf
New member
Registered: 2005-12-07
Posts: 2

Re: Stylist wont load external stylheet

I have tried the CSS blob from the first post and do see the styles in the panel. However, when I replace that with this

xinha_config.stylistLoadStylesheet('/home/website/public_html/text.css');

nothing is still being. This is the correct absolute path, so I am not sure where to go from here. Is there something else I would need to do?

Offline

#6 2006-01-21 09:35:48

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Stylist wont load external stylheet

1. You have to use the absolute path from your server root (like the browser sees it), not the filesystem path.
2. I can confirm Stylist is a little picky, e.g I could not load a editor.css until I renamed it

Offline

Board footer

Powered by FluxBB