mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-08 11:32:59 +00:00
Extend button widget to set text references
Previously the `set` attribute could only be used to identify a tiddler, not a full text reference.
This commit is contained in:
@@ -118,8 +118,7 @@ ButtonWidget.prototype.triggerPopup = function(event) {
|
||||
};
|
||||
|
||||
ButtonWidget.prototype.setTiddler = function() {
|
||||
var tiddler = this.wiki.getTiddler(this.set);
|
||||
this.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.set, text: this.setTo}));
|
||||
this.wiki.setTextReference(this.set,this.setTo,this.getVariable("currentTiddler"));
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user