@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/v2/Editor.js CHANGED
@@ -2260,7 +2260,7 @@ var Placeholder = Extension.create({
2260
2260
  if (_this.options.isSlashCommandsActive && !_this.options.placeholder) {
2261
2261
  placeholderText = _this.options.slashCommandsPlaceholder;
2262
2262
  }
2263
- } else if (hasAnchor && _this.options.isSlashCommandsActive && node.type.name === "paragraph") {
2263
+ } else if (hasAnchor && _this.editor.isFocused && _this.options.isSlashCommandsActive && node.type.name === "paragraph") {
2264
2264
  classes.push("is-current-slash-placeholder");
2265
2265
  placeholderText = _this.options.slashCommandsPlaceholder;
2266
2266
  }
@@ -3761,8 +3761,9 @@ var getEmbedAttributes = function getEmbedAttributes() {
3761
3761
  originalUrl: {
3762
3762
  "default": "",
3763
3763
  parseHTML: function parseHTML(element) {
3764
+ var _iframe$querySelector;
3764
3765
  var iframe = element.querySelector(".neeto-editor__video-iframe");
3765
- return (iframe === null || iframe === void 0 ? void 0 : iframe.getAttribute("data-original-url")) || "";
3766
+ 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")) || "";
3766
3767
  }
3767
3768
  },
3768
3769
  frameBorder: "0",