From 98986ba9cc4e849bd8f84def7bd341fa4f7c6b47 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 15 May 2013 21:33:40 +0100 Subject: [PATCH] Fix problem with render context not inherited into htmlwikified view widgets --- core/modules/widgets/view/viewers/htmlwikified.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/view/viewers/htmlwikified.js b/core/modules/widgets/view/viewers/htmlwikified.js index 79b89172c..845ef49c8 100644 --- a/core/modules/widgets/view/viewers/htmlwikified.js +++ b/core/modules/widgets/view/viewers/htmlwikified.js @@ -23,7 +23,7 @@ HtmlWikifiedViewer.prototype.render = function() { // Parse the field text var wiki = this.viewWidget.renderer.renderTree.wiki, 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(); var text = renderTree.render("text/html"); // Set the element details