1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-04 17:16:18 +00:00
TiddlyWiki5/plugins/tiddlywiki/comments/toolbar-button-edit.tid

13 lines
450 B
Plaintext
Raw Normal View History

title: $:/plugins/tiddlywiki/comments/toolbar-button-edit
tags: $:/tags/CommentToolbarButton
<$reveal state="$:/status/IsReadOnly" type="match" text="no" default="no" tag="span">
<$reveal type="nomatch" state="!!edit-mode" text="yes">
<$button>
<$action-setfield $tiddler=<<currentTiddler>> $field="edit-mode" $value="yes"/>
<$action-setfield $tiddler=<<currentTiddler>> $field="saved-text" $value={{!!text}}/>
edit
</$button>
</$reveal>
</$reveal>