@bigbinary/neeto-editor 1.47.125 → 1.47.127

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.
@@ -1455,7 +1455,7 @@ var VideoEmbedForm = function VideoEmbedForm(_ref) {
1455
1455
  var onSubmit = function onSubmit(_ref2) {
1456
1456
  var url = _ref2.url;
1457
1457
  var embedUrl = validateUrl(url);
1458
- if (embedUrl) onEmbedVideo(embedUrl);else onAttachVideo(url);
1458
+ if (embedUrl) onEmbedVideo(url, embedUrl);else onAttachVideo(url);
1459
1459
  onClose();
1460
1460
  };
1461
1461
  return /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -1594,10 +1594,11 @@ var MediaUploader = function MediaUploader(_ref) {
1594
1594
  url: url};
1595
1595
  insertMediaToEditor(file);
1596
1596
  };
1597
- var onEmbedVideo = function onEmbedVideo(url) {
1597
+ var onEmbedVideo = function onEmbedVideo(originalUrl, embedUrl) {
1598
1598
  if (!editor) return;
1599
1599
  editor.chain().focus().setExternalVideo({
1600
- src: url
1600
+ src: embedUrl,
1601
+ originalUrl: originalUrl
1601
1602
  }).run();
1602
1603
  };
1603
1604
  var allowDismiss = ramda.not(isUploading);
@@ -3485,4 +3486,4 @@ exports.transformEditorContent = transformEditorContent;
3485
3486
  exports.transformPastedHTML = transformPastedHTML;
3486
3487
  exports.validateAndFormatUrl = validateAndFormatUrl;
3487
3488
  exports.validateUrl = validateUrl;
3488
- //# sourceMappingURL=chunk-DoYRXWHQ.cjs.js.map
3489
+ //# sourceMappingURL=chunk-DkzRRlJ6.cjs.js.map