@burger-editor/client 4.0.0-alpha.26 → 4.0.0-alpha.27
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/dist/client.js +4 -2
- package/dist/client.js.map +1 -1
- package/package.json +6 -6
package/dist/client.js
CHANGED
|
@@ -78,7 +78,9 @@ function sanitizeAttrs(el) {
|
|
|
78
78
|
function sanitizeStyle(el) {
|
|
79
79
|
const customProperties = [];
|
|
80
80
|
const style = el.style;
|
|
81
|
-
|
|
81
|
+
// JSDOM's CSSStyleDeclaration does not have Symbol.iterator
|
|
82
|
+
const properties = typeof el.style[Symbol.iterator] === 'function' ? style : Object.keys(style);
|
|
83
|
+
for (const property of properties) {
|
|
82
84
|
if (property.startsWith(BLOCK_OPTION_CSS_CUSTOM_PROPERTY_PREFIX)) {
|
|
83
85
|
customProperties.push([property, style.getPropertyValue(property)]);
|
|
84
86
|
}
|
|
@@ -44065,7 +44067,7 @@ function parseConfig(config) {
|
|
|
44065
44067
|
}
|
|
44066
44068
|
}
|
|
44067
44069
|
|
|
44068
|
-
const version = "4.0.0-alpha.
|
|
44070
|
+
const version = "4.0.0-alpha.26";
|
|
44069
44071
|
function attachDraftSwitcher(engine) {
|
|
44070
44072
|
if (engine.hasDraft()) {
|
|
44071
44073
|
const container = document.createElement("div");
|