mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-11 04:52:59 +00:00
Fix problem with custom tag in reveal widget
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user