@wizishop/wizi-block 4.2.34-beta → 4.2.35-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/wizishop-wizi-block.umd.js +9 -7
- package/bundles/wizishop-wizi-block.umd.js.map +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.js +10 -8
- package/fesm2015/wizishop-wizi-block.js +9 -7
- package/fesm2015/wizishop-wizi-block.js.map +1 -1
- package/package.json +5 -1
|
@@ -20965,14 +20965,16 @@
|
|
|
20965
20965
|
};
|
|
20966
20966
|
InlineStyleTool.prototype.identicalAttributes = function (currentElement, nextElement) {
|
|
20967
20967
|
var currentElementAttributes = currentElement.getAttributeNames();
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
if (
|
|
20971
|
-
nextElement.getAttribute(attribute)
|
|
20972
|
-
|
|
20968
|
+
if (currentElementAttributes) {
|
|
20969
|
+
currentElementAttributes.forEach(function (attribute) {
|
|
20970
|
+
if (attribute !== 'style') {
|
|
20971
|
+
if (!nextElement.getAttribute(attribute) ||
|
|
20972
|
+
nextElement.getAttribute(attribute) !== currentElement.getAttribute(attribute)) {
|
|
20973
|
+
return false;
|
|
20974
|
+
}
|
|
20973
20975
|
}
|
|
20974
|
-
}
|
|
20975
|
-
}
|
|
20976
|
+
});
|
|
20977
|
+
}
|
|
20976
20978
|
return true;
|
|
20977
20979
|
};
|
|
20978
20980
|
InlineStyleTool.prototype.identicalInlineStyle = function (currentElement, nextElement) {
|