mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-09 23:50:01 +00:00
![Jermolene](/assets/img/avatar_default.png)
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
22 lines
581 B
Plaintext
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>>
|