1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Refactor out the help text in the editor template

This commit is contained in:
Jeremy Ruston 2013-06-29 09:20:07 +01:00
parent 0edfc855b4
commit 2ae818dae8
2 changed files with 5 additions and 2 deletions

View File

@ -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>

3
core/ui/EditorHint.tid Normal file
View File

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