1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +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() \define new-field-inner()
<$reveal type="nomatch" text="" default=<<name>>> <$reveal type="nomatch" text="" default=<<name>>>
<$button> <$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/newfieldname"/>
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/> <$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
<<lingo Fields/Add/Button>> <<lingo Fields/Add/Button>>