mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +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.execute();
|
||||
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;
|
||||
}
|
||||
var domNode = this.document.createElement(tag);
|
||||
|
Loading…
Reference in New Issue
Block a user