vendor/assets/javascripts/wysihtml5.js in storytime-0.0.1 vs vendor/assets/javascripts/wysihtml5.js in storytime-0.0.2

- old
+ new

@@ -4900,10 +4900,11 @@ setClass = rule.set_class, // classes to set addClass = rule.add_class, // add classes based on existing attributes setAttributes = rule.set_attributes, // attributes to set on the current node checkAttributes = rule.check_attributes, // check/convert values of attributes allowedClasses = currentRules.classes, + allowAllClasses = currentRules.allowAllClasses, i = 0, classes = [], newClasses = [], newUniqueClasses = [], oldClasses = [], @@ -4958,10 +4959,10 @@ classes = classes.concat(oldClasses.split(WHITE_SPACE_REG_EXP)); } classesLength = classes.length; for (; i<classesLength; i++) { currentClass = classes[i]; - if (allowedClasses[currentClass]) { + if (allowedClasses[currentClass] || allowAllClasses) { newClasses.push(currentClass); } } // remove duplicate entries and preserve class specificity