@bigbinary/neeto-editor 1.47.134 → 1.47.136
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 +3 -2
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +3 -2
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/Editor.cjs.js +3 -2
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/v2/Editor.js +3 -2
- package/dist/v2/Editor.js.map +1 -1
- package/package.json +1 -1
|
@@ -2316,7 +2316,7 @@ var Placeholder = useEditorStore.Extension.create({
|
|
|
2316
2316
|
if (_this.options.isSlashCommandsActive && !_this.options.placeholder) {
|
|
2317
2317
|
placeholderText = _this.options.slashCommandsPlaceholder;
|
|
2318
2318
|
}
|
|
2319
|
-
} else if (hasAnchor && _this.options.isSlashCommandsActive && node.type.name === "paragraph") {
|
|
2319
|
+
} else if (hasAnchor && _this.editor.isFocused && _this.options.isSlashCommandsActive && node.type.name === "paragraph") {
|
|
2320
2320
|
classes.push("is-current-slash-placeholder");
|
|
2321
2321
|
placeholderText = _this.options.slashCommandsPlaceholder;
|
|
2322
2322
|
}
|
|
@@ -3817,8 +3817,9 @@ var getEmbedAttributes = function getEmbedAttributes() {
|
|
|
3817
3817
|
originalUrl: {
|
|
3818
3818
|
"default": "",
|
|
3819
3819
|
parseHTML: function parseHTML(element) {
|
|
3820
|
+
var _iframe$querySelector;
|
|
3820
3821
|
var iframe = element.querySelector(".neeto-editor__video-iframe");
|
|
3821
|
-
return (iframe === null || iframe === void 0 ? void 0 : iframe.getAttribute("data-original-url")) || "";
|
|
3822
|
+
return (iframe === null || iframe === void 0 ? void 0 : iframe.getAttribute("data-original-url")) || (iframe === null || iframe === void 0 || (_iframe$querySelector = iframe.querySelector("iframe")) === null || _iframe$querySelector === void 0 ? void 0 : _iframe$querySelector.getAttribute("data-original-url")) || "";
|
|
3822
3823
|
}
|
|
3823
3824
|
},
|
|
3824
3825
|
frameBorder: "0",
|