mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-06 08:01:42 +00:00
Allow field modules to specify HTML element tag used for editing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user