Announcement

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

#1 2008-07-10 14:23:21

MyLocalFOCUS.com
Xinha Community Member
Registered: 2007-02-17
Posts: 31

Remove / Replace a plugin

I am getting fair ahead of creating plugins now, but am struggling to understand some of the intricacies of xonha itself.

My plugin is an image uploader, meant as a direct replacement for insertimage. I have the uploader working, so switch off the insert image from my xinha config file. (The icon disappears. Yay).

So, I now right click my image and try and start the image properties. Now that I have disabled insertimage, this now fails... so I want to point it to my uploader. However, it seems that the insertimage is heavily embedded into xinha core so that it is very awkward to change AND means that should I ever upgrade xinha, it will break my changes.

So, what do I do? I have tried modifying the context menu as well, but really don't know how it launches the insertimage.

Any clues as to how I get it to work would be appreciated.

Offline

#2 2008-07-22 07:10:03

MyLocalFOCUS.com
Xinha Community Member
Registered: 2007-02-17
Posts: 31

Re: Remove / Replace a plugin

Anyone?

Offline

#3 2008-07-28 09:40:58

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

Re: Remove / Replace a plugin

You should override the _insertImage method of the Xinha object.

See ImageManager plugin image-manager.js around line 82 for example.


James Sleeman

Offline

Board footer

Powered by FluxBB