@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 +6 -1
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +6 -1
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/package.json +1 -1
package/dist/cjs/Editor.cjs.js
CHANGED
|
@@ -20366,8 +20366,13 @@ var UnifiedVideoExtension = Menu$4.Node.create({
|
|
|
20366
20366
|
},
|
|
20367
20367
|
parseHTML: function parseHTML() {
|
|
20368
20368
|
return [{
|
|
20369
|
-
tag: "
|
|
20369
|
+
tag: "div.neeto-editor__image-wrapper",
|
|
20370
20370
|
getAttrs: function getAttrs(node) {
|
|
20371
|
+
var figure = node.querySelector("figure[data-video]");
|
|
20372
|
+
if (!figure) return false;
|
|
20373
|
+
var videoEl = figure.querySelector("video");
|
|
20374
|
+
var iframeEl = figure.querySelector("iframe");
|
|
20375
|
+
if (!videoEl && !iframeEl) return false;
|
|
20371
20376
|
return node.style.fontWeight !== "normal" && null;
|
|
20372
20377
|
},
|
|
20373
20378
|
contentElement: "figcaption"
|