You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some plugins need to be able to alter quite fundamental aspects of TiddlyWiki's behaviour. For example, a plugin that @welford is working on needs to modify the default tiddlers that are displayed at startup.
It is proposed to introduce a new global hooks mechanism that can be used across the core to enable plugins to hook into and modify default functionality.
The example of modifying the list of default tiddlers would be something like this:
Some plugins need to be able to alter quite fundamental aspects of TiddlyWiki's behaviour. For example, a plugin that @welford is working on needs to modify the default tiddlers that are displayed at startup.
It is proposed to introduce a new global hooks mechanism that can be used across the core to enable plugins to hook into and modify default functionality.
The example of modifying the list of default tiddlers would be something like this:
Then, within the function openStartupTiddlers() in
$:/core/modules/startup/story.js
, we'd invoke the hooks like this:The text was updated successfully, but these errors were encountered: