mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-03 16:48:53 +00:00
Make the core into a plugin
This commit is contained in:
@@ -90,8 +90,7 @@ exports.startup = function() {
|
||||
$tw.crypto.setPassword(null);
|
||||
});
|
||||
// Apply stylesheets
|
||||
var styleTiddlers = $tw.wiki.getTiddlersWithTag("$:/core/styles");
|
||||
$tw.utils.each(styleTiddlers,function(title) {
|
||||
$tw.utils.each($tw.modules.types.stylesheet,function(moduleInfo,title) {
|
||||
// Stylesheets don't refresh, yet
|
||||
var parser = $tw.wiki.parseTiddler(title),
|
||||
renderTree = new $tw.WikiRenderTree(parser,{wiki: $tw.wiki});
|
||||
|
||||
@@ -375,7 +375,7 @@ application/x-tiddler-dictionary: the tiddler is parsed as sequence of name:valu
|
||||
Other types currently just return null.
|
||||
*/
|
||||
exports.getTiddlerData = function(title,defaultData) {
|
||||
var tiddler = this.tiddlers[title],
|
||||
var tiddler = this.getTiddler(title),
|
||||
data;
|
||||
if(tiddler && tiddler.fields.text) {
|
||||
switch(tiddler.fields.type) {
|
||||
|
||||
Reference in New Issue
Block a user