2016-04-22 07:36:29 +00:00
|
|
|
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>]
|
2016-04-29 16:18:58 +00:00
|
|
|
button-classes: tc-text-editor-toolbar-item-start-group
|
2016-04-22 07:36:29 +00:00
|
|
|
shortcuts: ((preview))
|
|
|
|
|
2022-04-06 07:27:05 +00:00
|
|
|
\whitespace trim
|
2023-12-21 10:36:08 +00:00
|
|
|
<span>
|
2024-02-14 16:22:54 +00:00
|
|
|
<$transclude $tiddler={{{ [<edit-preview-state>match[yes]then[$:/core/images/preview-open]else[$:/core/images/preview-closed]] }}} />
|
2023-12-21 10:36:08 +00:00
|
|
|
</span>
|
|
|
|
<$action-setfield $tiddler=<<editPreviewStateTiddler>> $value={{{ [<editPreviewStateTiddler>get[text]toggle[yes],[no]] }}} />
|
2024-02-14 16:22:54 +00:00
|
|
|
<$action-sendmessage $message="tm-edit-text-operation" $param="focus-editor"/>
|