Announcement

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

#1 2008-07-09 08:09:01

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

Returns from plugin

Hi all,

I am creating a plugin based upon the InsertImage plugin, but allowing uploading of images to my webserver. My server is .NET, so the FileManager plugin is of no use to me.

Inside the InsertImage plugin is a line...
editor._doc.execCommand("InsertImage", false, _7.f_url);

I am not worried about the _7 as that is part of the function...

When I try and use this line with my own plugin name...

editor._doc.execCommand("Uploader", false, _7.f_url);

I get an Invalid Argument error. If I however replace Uploader with InserImage, all works well.

I note that in XinhaCore, the execCommand has a switch case statement and the case knows about InsertImage but obviously not my Uploader. I don't really want to go editting the XinhaCore.

So, what does the execCommand actually do? The statement inside the case  says this._insertImage();

What does this do?

What other options do I have, as without the execCommand statement, the whole thing fails.

Offline

Board footer

Powered by FluxBB