mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 12:59:56 +00:00
95e270a8a6
* Initial commit * Put SVG back into a span Needed in case this is targeted in CSS; DOM structure should not be changed. * Fix the fix Do it once, do it right.
16 lines
712 B
Plaintext
16 lines
712 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))
|
|
|
|
\whitespace trim
|
|
<span>
|
|
<$transclude $tiddler={{{ [<editPreviewStateTiddler>get[text]match[yes]then[$:/core/images/preview-open]else[$:/core/images/preview-closed]] }}} />
|
|
</span>
|
|
<$action-setfield $tiddler=<<editPreviewStateTiddler>> $value={{{ [<editPreviewStateTiddler>get[text]toggle[yes],[no]] }}} />
|
|
<$action-sendmessage $message="tm-edit-text-operation" $param="focus-editor"/> |