The discussion with Tobias concerning my prototype editor 
https://groups.google.com/forum/#!topic/tiddlywiki/udxz8SrnFPY prompted me 
to drill into Tiddlywiki to decide just how the internal editor's Show/Hide 
Button worked. While I was there I figured out how to make my suggested 
Editor Help a part of TiddlyWiki's internal editor. I have updated the file 
at http://teamkimmel.org/TW518Editor.html with the changes and some 
directions.

Since this involves a core tiddler, it should be done on an Empty wiki 
where nothing will be lost but time if you do something wrong.

This is what I did:

1. I created a Tiddler called Preview 
<http://teamkimmel.org/TW518Editor.html#Preview> that contained just this 
line: 


<$transclude mode="block" />


2. I created a tiddler called Editor Help 
<http://teamkimmel.org/TW518Editor.html#Editor%20Help> that contained the 
following:

''Select a Help Topic:''
> <$select tiddler="$:/temp/help-browser" default="action-navigate">
> <$list filter='[tag[Editor Help]sort[title]]'>
> <option value=<<currentTiddler>> >
> <$text text=<<currentTiddler>>/>
> </option>
> </$list>
> </$select>
> <hr>
> <$transclude tiddler={{$:/temp/help-browser}} mode="block" />
>
>
3. I created some Help tiddlers and gave them the tag "Editor Help" The 
specific tag isn't as important as the fact it matches the filter tag in 
the tiddler Editor Help 
<http://teamkimmel.org/TW518Editor.html#Editor%20Help>.

4. I edited the core tiddler: $:/core/ui/EditTemplate/body 
<http://teamkimmel.org/TW518Editor.html#%24%3A%2Fcore%2Fui%2FEditTemplate%2Fbody>.
 
Specifically in that tiddler, I deleted the line:

<$transclude />

 
and replaced it with a line that read:

<<tabs "Preview [[Editor Help]]" "Preview">>


Because TiddlyWiki <http://teamkimmel.org/TW518Editor.html#TiddlyWiki> is 
constantly updating itself, I had to click after each character to 
re-establish the focus.

 5. Saved the tiddler and the wiki.

Now when I click the "show preview" button, I see two tabs, one labelled 
"Preview" and the other labelled "Editor Help." Clicking on the Preview tab 
shows the preview of the tiddler being edited exactly as before. Clicking 
on the Editor Help tab gives a Select Box listing the help topics I 
created. In my case that's Basic Formatting 
<http://teamkimmel.org/TW518Editor.html#Basic%20Formatting>, Images 
<http://teamkimmel.org/TW518Editor.html#Images>, Links 
<http://teamkimmel.org/TW518Editor.html#Links>, Lists 
<http://teamkimmel.org/TW518Editor.html#Lists>, Quotations 
<http://teamkimmel.org/TW518Editor.html#Quotations> and Tables 
<http://teamkimmel.org/TW518Editor.html#Tables>. You could include any help 
topic you want and probably all of Tobias' Markup references if desired.
It bears repeating: because this involves the modification to a core 
tiddler, you should perform this on an Empty Tiddler and use care.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to