mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-26 03:51:14 -08:00
Make the edit widget pass through the placeholder attribute
This commit is contained in:
parent
8538d69dc1
commit
062c4e5400
1 changed files with 3 additions and 1 deletions
|
|
@ -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}
|
||||
}
|
||||
}]);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue