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:
parent
e46d3d74be
commit
e80a08f43b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user