Introduce text/vnd.tiddlywiki.railroad

This commit is contained in:
Astrid Elocson
2015-01-19 19:59:38 +00:00
parent 6842a354ea
commit e5676d058a
2 changed files with 32 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ RailroadWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
// Get the source text
console.log('getAttribute(text)', this.getAttribute("text", 'not found'));
$tw.utils.each(this.parseTreeNode,function(element,title,object) {
console.log(':', element, title);
});
var source = this.getAttribute("text",this.parseTreeNode.text || "");
// Create a div to contain the SVG or error message
var div = this.document.createElement("div");