mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-18 12:54:27 +00:00
Make the edit widget pass through the placeholder attribute
This commit is contained in:
1 parent
8538d69dc1
commit
062c4e5400
1 file changed
+3
-1
@@ -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}
|
||||
}
|
||||
}]);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user