1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Restore some docs re EditTextWidget (#6170)

This commit is contained in:
Marxsal 2021-11-04 13:39:53 -07:00 committed by GitHub
parent 193628d63f
commit 746a8ca17f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
caption: edit-text
created: 20131024141900000
modified: 20211021091910134
tags: Widgets TriggeringWidgets
modified: 20211104200554064
tags: Widgets
title: EditTextWidget
type: text/vnd.tiddlywiki
@ -37,3 +37,14 @@ The content of the `<$edit-text>` widget is ignored.
|refreshTitle |<<.from-version 5.1.23>> An optional tiddler title that makes the input field update whenever the specified tiddler changes |
|disabled|<<.from-version "5.1.23">> Optional, disables the text input if set to "yes". Defaults to "no"|
|fileDrop|<<.from-version "5.2.0">> Optional. When set to "yes" allows dropping or pasting images into the editor to import them. Defaults to "no"|
! Example
If you wanted to change the field //myconfig// of the tiddler //AppSettings//, you could use an EditTextWidget to edit the field, and then show the result anywhere else by using `{{AppSettings!!myconfig}}`. Note that this will create tiddler AppSettings if it doesn't already exist.
<$macrocall $name=".example" n="1"
eg="""<$edit-text tiddler="AppSettings" field="myconfig"/><p/>
Value of ''myconfig'' : {{AppSettings!!myconfig}}
"""/>