mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
3287cf56bb
* make editor-preview open on a per-tiddler basis * use qualified state for showeditpreview * fix added p tag * Make tiddler-preview per-tiddler configurable * Create ShowEditPreviewPerTiddler.tid * Update ControlPanel.multids * Create ShowEditPreviewPerTiddler.tid * Update body.tid * Update ShowEditPreviewPerTiddler.tid * Update ControlPanel.multids * Delete ShowEditPreviewPerTiddler.tid * Delete ShowEditPreviewPerTiddler.tid * Create Hidden Setting ShowEditPreviewPerTiddler.tid
19 lines
694 B
Plaintext
19 lines
694 B
Plaintext
title: $:/core/ui/EditorToolbar/preview
|
|
tags: $:/tags/EditorToolbar
|
|
icon: $:/core/images/preview-open
|
|
custom-icon: yes
|
|
caption: {{$:/language/Buttons/Preview/Caption}}
|
|
description: {{$:/language/Buttons/Preview/Hint}}
|
|
condition: [<targetTiddler>]
|
|
button-classes: tc-text-editor-toolbar-item-start-group
|
|
shortcuts: ((preview))
|
|
|
|
<$reveal state=<<edit-preview-state>> type="match" text="yes" tag="span">
|
|
{{$:/core/images/preview-open}}
|
|
<$action-setfield $tiddler=<<edit-preview-state>> $value="no"/>
|
|
</$reveal>
|
|
<$reveal state=<<edit-preview-state>> type="nomatch" text="yes" tag="span">
|
|
{{$:/core/images/preview-closed}}
|
|
<$action-setfield $tiddler=<<edit-preview-state>> $value="yes"/>
|
|
</$reveal>
|