Refactor out the help text in the editor template

print-window-tiddler
Jeremy Ruston 2013-06-29 09:20:07 +01:00
rodzic 0edfc855b4
commit 2ae818dae8
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ modifier: JeremyRuston
<$transclude template="$:/core/ui/TagsEditor"/>
<$reveal state="$:/ShowEditPreview" type="match" text="yes">
<span class="tw-tiddler-help">Use WikiText to add formatting, images, and dynamic features</span> <$button type="set" set="$:/ShowEditPreview" setTo="no" >Hide preview</$button>
<$transclude template="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="no">hide preview</$button>
<div class="tw-tiddler-preview">
<div class="tw-tiddler-preview-preview">
<$view field="text" format="wikified"/>
@ -23,7 +23,7 @@ modifier: JeremyRuston
</div>
</$reveal>
<$reveal state="$:/ShowEditPreview" type="nomatch" text="yes">
<span class="tw-tiddler-help">Use WikiText to add formatting, images, and dynamic features</span> <$button type="set" set="$:/ShowEditPreview" setTo="yes" >Show preview</$button>
<$transclude template="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="yes">show preview</$button>
<$edit field="text"/>
</$reveal>

Wyświetl plik

@ -0,0 +1,3 @@
title: $:/core/ui/EditorHint
<span class="tw-tiddler-help">Use WikiText to add formatting, images, and dynamic features</span>