Improve support for drag and drop

Documentation TBD
This commit is contained in:
Jermolene
2017-03-19 19:33:56 +00:00
parent c2391c5250
commit eba1c3c160
10 changed files with 510 additions and 79 deletions
+3 -2
View File
@@ -512,7 +512,7 @@ Widget.prototype.invokeActions = function(triggeringWidget,event) {
/*
Invoke the action widgets defined in a string
*/
Widget.prototype.invokeActionString = function(actions,triggeringWidget,event) {
Widget.prototype.invokeActionString = function(actions,triggeringWidget,event,variables) {
actions = actions || "";
var parser = this.wiki.parseText("text/vnd.tiddlywiki",actions,{
parentWidget: this,
@@ -520,7 +520,8 @@ Widget.prototype.invokeActionString = function(actions,triggeringWidget,event) {
}),
widgetNode = this.wiki.makeWidget(parser,{
parentWidget: this,
document: this.document
document: this.document,
variables: variables
});
var container = this.document.createElement("div");
widgetNode.render(container,null);