1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

Fix problem with field names containing special characters

The characters `> / ' " =` were causing problems.

Thanks @ericshulman
This commit is contained in:
Jermolene 2015-05-18 19:29:10 +01:00
parent 16ebdff1cc
commit 5a6249894d

View File

@ -13,7 +13,7 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$
\define new-field-inner()
<$reveal type="nomatch" text="" default=<<name>>>
<$button>
<$action-sendmessage $message="tm-add-field" $(name)$=<<value>>/>
<$action-setfield $tiddler={{!!title}} $field=<<name>> $value=<<value>>/>
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
<<lingo Fields/Add/Button>>