mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-12 10:20:26 +00:00
Allow "yes" as a synonym of "true"
For consistency
This commit is contained in:
parent
f470c54fc5
commit
39f0c19c9a
@ -70,7 +70,7 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
|
|||||||
// Fix height
|
// Fix height
|
||||||
this.engine.fixHeight();
|
this.engine.fixHeight();
|
||||||
// Focus if required
|
// Focus if required
|
||||||
if(this.editFocus === "true") {
|
if(this.editFocus === "true" || this.editFocus === "yes") {
|
||||||
this.engine.focus();
|
this.engine.focus();
|
||||||
}
|
}
|
||||||
// Add widget message listeners
|
// Add widget message listeners
|
||||||
|
@ -23,7 +23,7 @@ The content of the `<$edit-text>` widget is ignored.
|
|||||||
|class |A CSS class to be assigned to the generated HTML editing element |
|
|class |A CSS class to be assigned to the generated HTML editing element |
|
||||||
|placeholder |Placeholder text to be displayed when the edit field is empty |
|
|placeholder |Placeholder text to be displayed when the edit field is empty |
|
||||||
|focusPopup |Title of a state tiddler for a popup that is displayed when the editing element has focus |
|
|focusPopup |Title of a state tiddler for a popup that is displayed when the editing element has focus |
|
||||||
|focus |Set to "true" to automatically focus the editor after creation |
|
|focus |Set to "yes" or "true" to automatically focus the editor after creation |
|
||||||
|tag |Overrides the generated HTML editing element tag. Use `textarea` for a multi-line editor |
|
|tag |Overrides the generated HTML editing element tag. Use `textarea` for a multi-line editor |
|
||||||
|type |Overrides the generated HTML editing element `type` attribute |
|
|type |Overrides the generated HTML editing element `type` attribute |
|
||||||
|size |The size of the input field (in characters) |
|
|size |The size of the input field (in characters) |
|
||||||
|
Loading…
Reference in New Issue
Block a user