1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-06 22:04:19 +00:00

Fix transclusion refresh

Fixes #7441
This commit is contained in:
jeremy@jermolene.com 2023-05-09 14:31:36 +01:00
parent 18d7d3d8c0
commit 9f1eab175d

View File

@ -45,7 +45,7 @@ TranscludeWidget.prototype.execute = function() {
var target = this.getTransclusionTarget(), var target = this.getTransclusionTarget(),
parseTreeNodes = target.parseTreeNodes; parseTreeNodes = target.parseTreeNodes;
this.sourceText = target.text; this.sourceText = target.text;
this.sourceType = target.type; this.parserType = target.type;
this.parseAsInline = target.parseAsInline; this.parseAsInline = target.parseAsInline;
// Process the transclusion according to the output type // Process the transclusion according to the output type
switch(this.transcludeOutput || "text/html") { switch(this.transcludeOutput || "text/html") {
@ -58,7 +58,7 @@ TranscludeWidget.prototype.execute = function() {
break; break;
default: default:
// text/plain // text/plain
var plainText = this.wiki.renderText("text/plain",this.sourceType,this.sourceText,{parentWidget: this}); var plainText = this.wiki.renderText("text/plain",this.parserType,this.sourceText,{parentWidget: this});
parseTreeNodes = [{type: "text", text: plainText}]; parseTreeNodes = [{type: "text", text: plainText}];
break; break;
} }