From 2ae818dae851f2ce2a191b9435d3456bf8626f04 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 29 Jun 2013 09:20:07 +0100 Subject: [PATCH] Refactor out the help text in the editor template --- core/ui/EditTemplate.tid | 4 ++-- core/ui/EditorHint.tid | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 core/ui/EditorHint.tid diff --git a/core/ui/EditTemplate.tid b/core/ui/EditTemplate.tid index a5fcb8057..971f5e180 100644 --- a/core/ui/EditTemplate.tid +++ b/core/ui/EditTemplate.tid @@ -12,7 +12,7 @@ modifier: JeremyRuston <$transclude template="$:/core/ui/TagsEditor"/> <$reveal state="$:/ShowEditPreview" type="match" text="yes"> -Use WikiText to add formatting, images, and dynamic features <$button type="set" set="$:/ShowEditPreview" setTo="no" >Hide preview +<$transclude template="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="no">hide preview
<$view field="text" format="wikified"/> @@ -23,7 +23,7 @@ modifier: JeremyRuston
<$reveal state="$:/ShowEditPreview" type="nomatch" text="yes"> -Use WikiText to add formatting, images, and dynamic features <$button type="set" set="$:/ShowEditPreview" setTo="yes" >Show preview +<$transclude template="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="yes">show preview <$edit field="text"/> diff --git a/core/ui/EditorHint.tid b/core/ui/EditorHint.tid new file mode 100644 index 000000000..fc3a46c91 --- /dev/null +++ b/core/ui/EditorHint.tid @@ -0,0 +1,3 @@ +title: $:/core/ui/EditorHint + +Use WikiText to add formatting, images, and dynamic features \ No newline at end of file