You are not logged in.
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
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
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