@bigbinary/neeto-editor 1.47.52 → 1.47.54
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 +7 -1
- package/src/translations/de.json +4 -4
- package/src/translations/es.json +4 -4
- package/src/translations/fr.json +4 -4
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: "
|
|
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"
|