zikula-modules/Scribite — Issue #42: (xinha) DynamicCSS plugin isn't working
Author: hvorragend
Created: 2012-01-05 10:33:39+00:00
State: open
Labels: bug

If you only activate the DynamicCSS plugin (and not the Stylist-plugin) then you don't have any contents in the DynamicCSS dropdown.

I've used long for the debugging, but I think now I can narrow down the error.

The following line can only be set once:

````
xinha_config.pageStyle = "@import url('{{$zBaseUrl}}/modules/Scribite/style/xinha/DynamicCSS.css');";
````

If you are working in the Pages module, then the css file is overwritten later in the template file:

````
xinha_config.pageStyle = "@import url('{{$zBaseUrl}}/modules/Scribite/style/xinha/pagebreak.css');";
````

---

If the Stylist plugin is activated, then both we have contents in the dropdown. Stylist uses its own stylesheet loader:

````
xinha_config.stylistLoadStylesheet('{{$zBaseUrl}}/modules/Scribite/style/xinha/stylist.css');
````

But we cannot use this for the DynamicCSS plugin.