From 35a842ade60369210ba44e654f04db9097ff960d Mon Sep 17 00:00:00 2001 From: saqimtiaz Date: Sat, 27 Jun 2020 13:33:14 +0200 Subject: [PATCH] EditWidget: Pass attributes from parseTreeNode to child widgets (#4740) --- core/modules/widgets/edit.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/core/modules/widgets/edit.js b/core/modules/widgets/edit.js index 9492952a5..472fc534b 100644 --- a/core/modules/widgets/edit.js +++ b/core/modules/widgets/edit.js @@ -54,16 +54,7 @@ EditWidget.prototype.execute = function() { // Make the child widgets this.makeChildWidgets([{ type: "edit-" + this.editorType, - 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} - }, + attributes: this.parseTreeNode.attributes, children: this.parseTreeNode.children }]); };