1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Fix problem with custom tag in reveal widget

This commit is contained in:
Jermolene 2015-03-10 16:59:25 +00:00
parent e46d3d74be
commit e80a08f43b

View File

@ -31,7 +31,7 @@ RevealWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes(); this.computeAttributes();
this.execute(); this.execute();
var tag = this.parseTreeNode.isBlock ? "div" : "span"; var tag = this.parseTreeNode.isBlock ? "div" : "span";
if($tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) { if(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {
tag = this.revealTag; tag = this.revealTag;
} }
var domNode = this.document.createElement(tag); var domNode = this.document.createElement(tag);