@bigbinary/neeto-editor 1.47.52 → 1.47.53

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/Editor.js CHANGED
@@ -20346,8 +20346,13 @@ var UnifiedVideoExtension = Node.create({
20346
20346
  },
20347
20347
  parseHTML: function parseHTML() {
20348
20348
  return [{
20349
- tag: "figure[data-video]",
20349
+ tag: "div.neeto-editor__image-wrapper",
20350
20350
  getAttrs: function getAttrs(node) {
20351
+ var figure = node.querySelector("figure[data-video]");
20352
+ if (!figure) return false;
20353
+ var videoEl = figure.querySelector("video");
20354
+ var iframeEl = figure.querySelector("iframe");
20355
+ if (!videoEl && !iframeEl) return false;
20351
20356
  return node.style.fontWeight !== "normal" && null;
20352
20357
  },
20353
20358
  contentElement: "figcaption"