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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user