You are not logged in.
Pages: 1
First of all, Xinha rocks. Works great. Super cool.
But I want to make it coooooooler so I wanted to enable some of the fancier plugins like Stylist.
I go to the website, it shows me the code to enable it... but where do I put this code? I've tried a few places and FF gives me a javascript error saying editor not defined.
editor.registerPlugin(Stylist);
cfg.stylistLoadStylesheet('*****');
Where do I put those?
Offline
U'm not using stylist so I can't be sure this works, but I have always enabled plugins from the config code, there's an example on the xinha home page I think. Anyway the relevant bit looks like
xinha_init = xinha_init ? xinha_init : function()
{
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'CharacterMap',
'SpellChecker',
'SuperClean',
'ImageManager'
];
.................
And the function goes on, basically any plugin you want to load you put the dirname of the plugin into the array above and it finds and loads it. Or so it always has for me.
Offline
Yeah, I do that but some plugins have special configuration stuff like the Stylist where you have to specify a CSS style sheet. Where does that go?
Offline
Pages: 1