Hide Tiddler Body

I have added the list-before field now with value $:/config/ViewTemplateBodyFilters/default- My TiddlyWiki — a non-linear personal web notebook

Now the alternate editor viewtemplate is getting activated once I add the ae-type field using the viewtoolbar button. But I need to modify my filters somewhere I guess beacuse on all tiddlers the same alternate editor table is being seen. I have to go for work now. I will revisit once I am back home.

Okay. now it works, you can start with adding gradually the style and content you want. This will help you to debug the current code!

After a lot of tinkering, finally I was able to make it work.
Now there are three editor modes which are activated by viewtoolbar buttons.

  1. Alternative editor without preview - This is a simple editor created using edit text widget.

  1. Alternative editor selective - This is an editor with three modes - simple editor, preview, editor with preview modes which can be selected using radio buttons.

  1. Alternative editor selective for modals - Same as the second one except that the editor is loaded in a modal.

Click on these three viewtoolbar buttons to see the editors working. image

Check out the editors in this link - My TiddlyWiki — a non-linear personal web notebook

Given below is a link of ensemble tiddler showing ensembles for each editor modes and their related tiddlers.
https://demowiki.tiddlyhost.com/#%24%3A%2Fplugins%2FBTC%2Ftiddlywiki-multi-columns%2Fui%2FSideBarTabs%2FEnsemble

Thank you @Mohammad for the helps.

2 Likes

Great work!
Thank you for sharing!

Sidenote: TW Icons is a comprehensive collections of icons, you can find good icons there with same size and line thickness ( stroke-width) as TW core icons!

I took it from this wiki TW Icons v1.10 — A large collection of icons for TiddlyWiki
Will check for more compatible icons when I get time.

@Mohammad

I have a small problem- check this tiddler

This is how it looks normally.

But in the preview mode of my editor, the wikitext formatting is lost.

This is the Editor tiddler and given below is the code that deals with the preview part.

<td style="width:50%;height:90vh;vertical-align:top;max-height: unset;overflow: auto;">
{{!!text}}
</td>
</$list>

</td>

I even tried the code given below instaed of {{!!text}}. BUt its not working.

 <$transclude tiddler={{!!text}} mode="block"/>

Is there any workarounds?

Perhaps somewhere you need to add an extra blank line! by the way for mode block I prefer

<$transclude tiddler={{!!text}} mode="block"/>

over

{{!!text}}

That worked :+1:

Is there any particular reason for that ?

At least you can control the mode! also $transclude can accept variables as attributes value, …

For detailed discussion see:

Question for clarification transclude widget vs shorthand transcludes - Discussion - Talk TW (tiddlywiki.org)