mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 15:54:50 +00:00
Fix problem with render context not inherited into htmlwikified view widgets
This commit is contained in:
parent
3229bb7c6c
commit
98986ba9cc
@ -23,7 +23,7 @@ HtmlWikifiedViewer.prototype.render = function() {
|
|||||||
// Parse the field text
|
// Parse the field text
|
||||||
var wiki = this.viewWidget.renderer.renderTree.wiki,
|
var wiki = this.viewWidget.renderer.renderTree.wiki,
|
||||||
parser = wiki.parseText("text/vnd.tiddlywiki",this.value),
|
parser = wiki.parseText("text/vnd.tiddlywiki",this.value),
|
||||||
renderTree = new $tw.WikiRenderTree(parser,{wiki: wiki});
|
renderTree = new $tw.WikiRenderTree(parser,{wiki: wiki, context: this.viewWidget.renderer.renderTree.context});
|
||||||
renderTree.execute();
|
renderTree.execute();
|
||||||
var text = renderTree.render("text/html");
|
var text = renderTree.render("text/html");
|
||||||
// Set the element details
|
// Set the element details
|
||||||
|
Loading…
Reference in New Issue
Block a user