From e80a08f43b51a864a18a597bb317fe29328ea42a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 10 Mar 2015 16:59:25 +0000 Subject: [PATCH] Fix problem with custom tag in reveal widget --- core/modules/widgets/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/reveal.js b/core/modules/widgets/reveal.js index 84f0b22e8..39cc6b1e6 100755 --- a/core/modules/widgets/reveal.js +++ b/core/modules/widgets/reveal.js @@ -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);