@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.
- package/dist/{chunk-COgPAsPy.js → chunk-C8O6gt0z.js} +5 -4
- package/dist/chunk-C8O6gt0z.js.map +1 -0
- package/dist/cjs/{chunk-DoYRXWHQ.cjs.js → chunk-DkzRRlJ6.cjs.js} +5 -4
- package/dist/cjs/chunk-DkzRRlJ6.cjs.js.map +1 -0
- package/dist/cjs/v2/Editor.cjs.js +14 -4
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/FormikEditor.cjs.js +1 -1
- package/dist/cjs/v2/Menu.cjs.js +1 -1
- package/dist/cjs/v2/index.cjs.js +1 -1
- package/dist/editor-stats.html +19 -1
- package/dist/v2/Editor.js +14 -4
- package/dist/v2/Editor.js.map +1 -1
- package/dist/v2/FormikEditor.js +1 -1
- package/dist/v2/Menu.js +1 -1
- package/dist/v2/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-COgPAsPy.js.map +0 -1
- package/dist/cjs/chunk-DoYRXWHQ.cjs.js.map +0 -1
|
@@ -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(
|
|
1597
|
+
var onEmbedVideo = function onEmbedVideo(originalUrl, embedUrl) {
|
|
1598
1598
|
if (!editor) return;
|
|
1599
1599
|
editor.chain().focus().setExternalVideo({
|
|
1600
|
-
src:
|
|
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-
|
|
3489
|
+
//# sourceMappingURL=chunk-DkzRRlJ6.cjs.js.map
|