mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
EditWidget: Pass attributes from parseTreeNode to child widgets (#4740)
This commit is contained in:
parent
d46872c061
commit
35a842ade6
@ -54,16 +54,7 @@ EditWidget.prototype.execute = function() {
|
|||||||
// Make the child widgets
|
// Make the child widgets
|
||||||
this.makeChildWidgets([{
|
this.makeChildWidgets([{
|
||||||
type: "edit-" + this.editorType,
|
type: "edit-" + this.editorType,
|
||||||
attributes: {
|
attributes: this.parseTreeNode.attributes,
|
||||||
tiddler: {type: "string", value: this.editTitle},
|
|
||||||
field: {type: "string", value: this.editField},
|
|
||||||
index: {type: "string", value: this.editIndex},
|
|
||||||
"class": {type: "string", value: this.editClass},
|
|
||||||
"placeholder": {type: "string", value: this.editPlaceholder},
|
|
||||||
"tabindex": {type: "string", value: this.editTabIndex},
|
|
||||||
"focus": {type: "string", value: this.editFocus},
|
|
||||||
"cancelPopups": {type: "string", value: this.editCancelPopups}
|
|
||||||
},
|
|
||||||
children: this.parseTreeNode.children
|
children: this.parseTreeNode.children
|
||||||
}]);
|
}]);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user