file-drop-site(key
, value
, ..., key
, value
)
Inserts a button in generated content which can be used to execute a command (see XMLmind XML Editor - Commands). Identical to command-button except that:
The user cannot click on a file-drop-site
. He/she needs to drag and drop a file (typically coming from an external file or Web browser) on it to trigger the command.
The parameter of the command must contain variable %{url}
which is substituted with the URL of the dropped file.
A file-drop-site cannot be used to popup a menu.
Example:
br|date:after { display: block; content: file-drop-site(text, "Drop a screen shot here", icon, url(drop.gif), icon-position, right, command, "paste", parameter, "after <?xml version='1.0'?><screenShot \ xmlns='http://www.xmlmind.com/xmleditor/schema/bugreport' \ image='%{url}'/>"); }