@bigbinary/neeto-editor 1.47.126 → 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.
@@ -1414,7 +1414,7 @@ var VideoEmbedForm = function VideoEmbedForm(_ref) {
1414
1414
  var onSubmit = function onSubmit(_ref2) {
1415
1415
  var url = _ref2.url;
1416
1416
  var embedUrl = validateUrl(url);
1417
- if (embedUrl) onEmbedVideo(embedUrl);else onAttachVideo(url);
1417
+ if (embedUrl) onEmbedVideo(url, embedUrl);else onAttachVideo(url);
1418
1418
  onClose();
1419
1419
  };
1420
1420
  return /*#__PURE__*/jsx("div", {
@@ -1553,10 +1553,11 @@ var MediaUploader = function MediaUploader(_ref) {
1553
1553
  url: url};
1554
1554
  insertMediaToEditor(file);
1555
1555
  };
1556
- var onEmbedVideo = function onEmbedVideo(url) {
1556
+ var onEmbedVideo = function onEmbedVideo(originalUrl, embedUrl) {
1557
1557
  if (!editor) return;
1558
1558
  editor.chain().focus().setExternalVideo({
1559
- src: url
1559
+ src: embedUrl,
1560
+ originalUrl: originalUrl
1560
1561
  }).run();
1561
1562
  };
1562
1563
  var allowDismiss = not(isUploading);
@@ -3426,4 +3427,4 @@ var Menu = function Menu(props) {
3426
3427
  };
3427
3428
 
3428
3429
  export { CALLOUT_TYPES as C, DEFAULT_EDITOR_OPTIONS as D, EmojiPickerMenu as E, LINK_VALIDATION_SCHEMA as L, Menu as M, isEmojiSuggestionsMenuActive as a, buildLevelsFromOptions as b, validateAndFormatUrl as c, getEditorStyles as d, MenuDynamicVariables as e, MediaUploader as f, getLinkPopoverPosition as g, LinkAddPopOver as h, isEditorOverlaysActive as i, transformPastedHTML as j, clipboardTextParser as k, setInitialPosition as s, transformEditorContent as t, validateUrl as v };
3429
- //# sourceMappingURL=chunk-COgPAsPy.js.map
3430
+ //# sourceMappingURL=chunk-C8O6gt0z.js.map