@blokkli/editor 2.0.0-alpha.21 → 2.0.0-alpha.22
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.js
CHANGED
|
@@ -64,6 +64,9 @@ const traverse = (element, results) => {
|
|
|
64
64
|
if (element.tagName === "SCRIPT" || element.tagName === "STYLE") {
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
+
if (element.classList.contains("bk-skip-analyze")) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
67
70
|
if (isBlockElement(element)) {
|
|
68
71
|
if (!containsBlockElements(element)) {
|
|
69
72
|
const text = getCleanText(element);
|
|
@@ -387,7 +387,7 @@ export default function(ui, debug, definitions, state, element) {
|
|
|
387
387
|
logger.log("registerBlock: " + uuid);
|
|
388
388
|
blockUuidCurrentKey[uuid] = key;
|
|
389
389
|
doInitTimeout();
|
|
390
|
-
if (!el) {
|
|
390
|
+
if (!(el instanceof HTMLElement)) {
|
|
391
391
|
logger.log("registerBlock call unregisterBlock because no element", uuid);
|
|
392
392
|
unregisterBlock(key, uuid);
|
|
393
393
|
return;
|