1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-02 02:03:14 +00:00
TiddlyWiki5/plugins/tiddlywiki/text-slicer/template-display-document.tid
Jermolene 898e992694 Improvements to text-slicer plugin
1. Introduce template tiddlers for the document, each tiddler, and the
tiddler toolbar
2. Move the text slicer toolbar button to the left of the edit button
3. Add a selectable toolbar, currently just containing the tiddler title
2015-08-03 15:10:35 +01:00

22 lines
581 B
Plaintext

title: $:/plugins/tiddlywiki/text-slicer/templates/display-document
\define config-show-toolbar()
$:/plugins/tiddlywiki/text-slicer/config/show-toolbar/$(currentTiddler)$
\end
\define display-tiddler()
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
<<display-heading-tiddler level:'h1'>>
</$set>
\end
<div class='tc-table-of-contents'>
<$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>>/>
</div>
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox>
<<display-tiddler>>