Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: disallow inserting empty embed urls/code (#9392)

01zulfif2230eb39b93
diff --git a/packages/editor/src/toolbar/popups/embed-popup.tsx b/packages/editor/src/toolbar/popups/embed-popup.tsx
index 044aebd27..cb634952b 100644
--- a/packages/editor/src/toolbar/popups/embed-popup.tsx
+++ b/packages/editor/src/toolbar/popups/embed-popup.tsx
@@ -73,6 +73,7 @@ export function EmbedPopup(props: EmbedPopupProps) {
onClose={() => onClose()}
action={{
title: strings.save(),
+ disabled: src.trim() === "",
onClick: () => {
setError(null);
let _src = src;