mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-23 03:03:14 +00:00
Fixed text widget crashing when text is missing
`<$text text=<<missingVariable>>/>` was crashing
This commit is contained in:
parent
2ae574d5ca
commit
d945492b8b
@ -30,7 +30,7 @@ TextNodeWidget.prototype.render = function(parent,nextSibling) {
|
||||
this.parentDomNode = parent;
|
||||
this.computeAttributes();
|
||||
this.execute();
|
||||
var text = this.getAttribute("text",this.parseTreeNode.text);
|
||||
var text = this.getAttribute("text",this.parseTreeNode.text || "");
|
||||
text = text.replace(/\r/mg,"");
|
||||
var textNode = this.document.createTextNode(text);
|
||||
parent.insertBefore(textNode,nextSibling);
|
||||
|
Loading…
x
Reference in New Issue
Block a user