mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-19 08:10:44 +00:00
Introduce extensible viewer modules for the view macro
This commit is contained in:
@@ -523,6 +523,18 @@ exports.initEditors = function(moduleType) {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Install viewer modules for the edit macro
|
||||
*/
|
||||
exports.initViewers = function(moduleType) {
|
||||
moduleType = moduleType || "viewer";
|
||||
var viewMacro = this.macros.view;
|
||||
if(viewMacro) {
|
||||
viewMacro.viewers = {};
|
||||
$tw.modules.applyMethods(moduleType,viewMacro.viewers);
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Install view modules for the story macro
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user