From 062c4e5400727efc682c73d1d95fbf5ad7eccf70 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 20 Dec 2013 17:06:57 +0000 Subject: [PATCH] Make the edit widget pass through the placeholder attribute --- core/modules/widgets/edit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/edit.js b/core/modules/widgets/edit.js index 909aa2057..d4732eac6 100644 --- a/core/modules/widgets/edit.js +++ b/core/modules/widgets/edit.js @@ -53,6 +53,7 @@ EditWidget.prototype.execute = function() { this.editField = this.getAttribute("field","text"); this.editIndex = this.getAttribute("index"); this.editClass = this.getAttribute("class"); + this.editPlaceholder = this.getAttribute("placeholder"); // Get the content type of the thing we're editing var type; if(this.editField === "text") { @@ -71,7 +72,8 @@ EditWidget.prototype.execute = function() { tiddler: {type: "string", value: this.editTitle}, field: {type: "string", value: this.editField}, index: {type: "string", value: this.editIndex}, - "class": {type: "string", value: this.editClass} + "class": {type: "string", value: this.editClass}, + "placeholder": {type: "string", value: this.editPlaceholder} } }]); };