1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-29 22:53:00 +00:00

Switch to using $tw.fakeDocument for the fakedom document object

So that we can free us `$tw.document` to be the actual DOM document
This commit is contained in:
Jermolene
2014-01-15 14:57:35 +00:00
parent 839361d54f
commit 2c790d982f
7 changed files with 12 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ Command.prototype.execute = function() {
$tw.utils.each(tiddlers,function(title) {
var parser = wiki.parseTiddler(template),
widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}});
var container = $tw.document.createElement("div");
var container = $tw.fakeDocument.createElement("div");
widgetNode.render(container,null);
var text = type === "text/html" ? container.innerHTML : container.textContent;
fs.writeFileSync(path.resolve(pathname,encodeURIComponent(title) + extension),text,"utf8");