Announcement

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

#1 2006-05-15 17:17:18

dlublink
Xinha Community Member
Registered: 2006-05-15
Posts: 10

Plugin Help

Hey,

I would like to write a plugin for Xinha. I have looked around and have not been able to find any documentation on it.

How do I create a new plugin that will function similar to InsertPicture?

I tried copying a plugin folder, but it caused xinha to crash without errors...

Any ideas?

Thanks,

David

Offline

#2 2006-05-15 23:08:56

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

Re: Plugin Help

Learn by example.  You need to know (well) Javascript.  Perhaps look at a simpler plugin first, SuperClean or CharCounter.


James Sleeman

Offline

#3 2006-05-16 08:42:29

dlublink
Xinha Community Member
Registered: 2006-05-15
Posts: 10

Re: Plugin Help

gogo wrote:

Learn by example.  You need to know (well) Javascript.  Perhaps look at a simpler plugin first, SuperClean or CharCounter.

You mean to tell me their is *no* documentation anywhere for making plugins???

Offline

#4 2006-05-16 11:12:01

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

Re: Plugin Help

dlublink wrote:
gogo wrote:

Learn by example.  You need to know (well) Javascript.  Perhaps look at a simpler plugin first, SuperClean or CharCounter.

You mean to tell me their is *no* documentation anywhere for making plugins???

There is none. We don't have much in the way of user documentation, let alone API documentation.  The code is commented though.

Making plugins is not really hard provided you can program in Javascript in an object oriented manner (if you cannot, then learn that first), just look at some of the small ones to get the idea, InsertWords (very simple), InsertSmiley, CharacterMap, BackgroundImage, and for a bit more look at SuperClean, and Linker.


James Sleeman

Offline

#5 2006-05-18 02:17:08

junkwarrior
Xinha Community Member
Registered: 2006-03-12
Posts: 14

Re: Plugin Help

Hi dlublink.
I found looking at the code for the 'Quick Tag Editor'  Plugin was a fairly easy way  to understand plugins. Take a look at it  and I'm sure you'll be well on your way within  minutes.

Offline

#6 2006-05-18 09:58:59

dlublink
Xinha Community Member
Registered: 2006-05-15
Posts: 10

Re: Plugin Help

junkwarrior wrote:

Hi dlublink.
I found looking at the code for the 'Quick Tag Editor'  Plugin was a fairly easy way  to understand plugins. Take a look at it  and I'm sure you'll be well on your way within  minutes.

I have 2 years experience in java and 2 hours in javascript. I manged to use InsertPicture to do what I needed.

Thanks for the help,

David

Offline

Board footer

Powered by FluxBB