1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-02 08:33:01 +00:00

Added inline transclusion as well as block transclusion

This commit is contained in:
Jeremy Ruston
2012-12-20 15:07:38 +00:00
parent 360e188e49
commit 055bdd8d8f
8 changed files with 99 additions and 21 deletions

View File

@@ -77,7 +77,7 @@ WidgetRenderer.prototype.render = function(type) {
WidgetRenderer.prototype.renderInDom = function() {
// Create the wrapper element
this.domNode = document.createElement("span");
this.domNode = document.createElement(this.parseTreeNode.isBlock ? "div" : "span");
this.domNode.setAttribute("data-widget-type",this.parseTreeNode.tag);
this.domNode.setAttribute("data-widget-attr",JSON.stringify(this.attributes));
// Render the widget if we've got one