mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-14 13:54:50 +00:00
ec18a55033
As proposed in #3378 * Experimental support for comments on the entire wiki (enable in the plugin config panel). Implemented as comments on $:/SiteTitle, with the comments appearing at the top of the story river * Refactor the "add comment" button actions so that they can be reused * Refactor the comment toolbar to be extensible via a system tag * Add an $:/AdvancedSearch canned filter for accessing all comments
13 lines
451 B
Plaintext
13 lines
451 B
Plaintext
title: $:/plugins/tiddlywiki/comments/toolbar-button-cancel
|
|
tags: $:/tags/CommentToolbarButton
|
|
|
|
<$reveal state="$:/status/IsReadOnly" type="match" text="no" default="no" tag="span">
|
|
<$reveal type="match" state="!!edit-mode" text="yes">
|
|
<$button>
|
|
<$action-setfield $tiddler=<<currentTiddler>> $field="edit-mode" $value="no"/>
|
|
<$action-setfield $tiddler=<<currentTiddler>> $field="text" $value={{!!saved-text}}/>
|
|
cancel
|
|
</$button>
|
|
</$reveal>
|
|
</$reveal>
|