mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-06 16:11:43 +00:00
Enhance text widget to optionally use "text" attribute
This lets us use the text widget to render text in macros that we don’t want to be wikified.
This commit is contained in:
@@ -28,8 +28,10 @@ Render this widget into the DOM
|
||||
*/
|
||||
TextNodeWidget.prototype.render = function(parent,nextSibling) {
|
||||
this.parentDomNode = parent;
|
||||
this.computeAttributes();
|
||||
this.execute();
|
||||
var textNode = this.document.createTextNode(this.parseTreeNode.text);
|
||||
var text = this.getAttribute("text",this.parseTreeNode.text),
|
||||
textNode = this.document.createTextNode(text);
|
||||
parent.insertBefore(textNode,nextSibling);
|
||||
this.domNodes.push(textNode);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user