1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-22 19:27:40 +00:00

Missing tests for parameters widget

This commit is contained in:
jeremy@jermolene.com
2022-09-16 16:07:32 +01:00
parent fa86631d2e
commit 8f9d5cabaa
5 changed files with 91 additions and 4 deletions

View File

@@ -330,11 +330,11 @@ Get one of the special parameters to be provided by the parameters widget
TranscludeWidget.prototype.getTransclusionMetaParameters = function() {
var self = this;
return {
"parseAsInline": function() {
return self.parseAsInline ? "yes" : "no";
"parseMode": function() {
return self.parseAsInline ? "inline" : "block";
},
"parseTreeNodes": function() {
return JSON.stringify(self.parseTreeNode);
return JSON.stringify(self.parseTreeNode.children || []);
},
"slotFillParseTreeNodes": function() {
return JSON.stringify(self.slotFillParseTrees);