Fix text-area type, support for newlines in key substitutions (fix #543), small tweaks to etymology-theme (fix #537)

This commit is contained in:
Pieter Vander Vennet 2021-11-07 18:37:42 +01:00
parent 7839712deb
commit fdb769a0fc
6 changed files with 19 additions and 10 deletions

View file

@ -196,7 +196,7 @@ export default class ValidatedTextField {
"A basic string"),
ValidatedTextField.tp(
"text",
"A string, but allows input of longer strings more comfortably (a text area)",
"A string, but allows input of longer strings more comfortably and supports newlines (a text area)",
undefined,
undefined,
undefined,
@ -473,6 +473,9 @@ export default class ValidatedTextField {
options.inputMode = tp.inputmode;
if(tp.inputmode === "text") {
options.htmlType = "area"
}
let input: InputElement<string> = new TextField(options);