Announcement

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

#1 2006-06-08 15:26:15

feechgeelz
New member
Registered: 2006-06-08
Posts: 3

Can't configure plugins?

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

#2 2006-06-08 17:17:48

steveo125
Xinha Community Member
Registered: 2006-04-04
Posts: 24

Re: Can't configure plugins?

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

#3 2006-06-08 17:53:08

feechgeelz
New member
Registered: 2006-06-08
Posts: 3

Re: Can't configure plugins?

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

Board footer

Powered by FluxBB