diff --git a/core/modules/widgets/edit-text.js b/core/modules/widgets/edit-text.js index 468efd0ac..b5ef11eb9 100644 --- a/core/modules/widgets/edit-text.js +++ b/core/modules/widgets/edit-text.js @@ -45,7 +45,9 @@ EditTextWidget.prototype.render = function(parent,nextSibling) { domNode.setAttribute("placeholder",this.editPlaceholder); } // Assign classes - domNode.className = this.editClass; + if(this.editClass) { + domNode.className = this.editClass; + } // Set the text var editInfo = this.getEditInfo(); if(this.editTag === "textarea") {