1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-02 16:43:00 +00:00

Merging #321 Table valign from @Skeeve

This commit is contained in:
Jermolene
2014-01-03 10:39:55 +00:00
parent 5dea8ca758
commit 307b5c7d6b
4 changed files with 66 additions and 5 deletions

View File

@@ -19,6 +19,13 @@ exports.addAttributeToParseTreeNode = function(node,name,value) {
}
};
exports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {
if(node.type === "element" && node.attributes && node.attributes[name] && node.attributes[name].value != undefined) {
return node.attributes[name].value;
}
return defaultValue;
};
exports.addClassToParseTreeNode = function(node,classString) {
var classes = [];
if(node.type === "element") {