Allow field modules to specify HTML element tag used for editing

This commit is contained in:
Jeremy Ruston
2013-11-07 19:39:50 +00:00
parent e5b66a08bf
commit 69888e6701
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -122,6 +122,9 @@ EditTextWidget.prototype.execute = function() {
} else {
tag = "input";
var fieldModule = $tw.Tiddler.fieldModules[this.editField];
if(fieldModule && fieldModule.editTag) {
tag = fieldModule.editTag;
}
if(fieldModule && fieldModule.editType) {
type = fieldModule.editType;
}