1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-23 19:57:38 +00:00

Introduce a PageMacros tiddler containing a tabs macro

This is a hacky way of having macro definitions that behave as if they
are global to the wiki.

The new tabs macro itself is cool, though: neatly encapsulates most of
the gubbins around a tab control, and the rendering is quite easy to
style.
This commit is contained in:
Jeremy Ruston
2013-11-04 18:21:20 +00:00
parent e42548997e
commit 63243c5855
5 changed files with 29 additions and 4 deletions

View File

@@ -102,8 +102,8 @@ exports.startup = function() {
$tw.rootWidget.addEventListener("tw-clear-password",function(event) {
$tw.crypto.setPassword(null);
});
// Display the PageTemplate
var templateTitle = "$:/core/ui/PageTemplate",
// Display the PageMacros, which includes the PageTemplate
var templateTitle = "$:/core/ui/PageMacros",
parser = $tw.wiki.new_parseTiddler(templateTitle);
$tw.pageWidgetNode = $tw.wiki.makeWidget(parser,{document: document, parentWidget: $tw.rootWidget});
$tw.pageContainer = document.createElement("div");