You are not logged in.
Pages: 1
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
Pages: 1