feat: add resizable image component and rich text editor with image upload support

This commit is contained in:
Linus Rath
2026-03-21 20:45:23 +01:00
parent a835af2d71
commit df272e38ef
9 changed files with 1521 additions and 105 deletions
@@ -192,6 +192,10 @@ export function EventDetailPopover({
useEffect(() => {
const handleKey = (e: KeyboardEvent) => {
if (e.key === "Escape") onClose();
const target = e.target as HTMLElement;
const tag = target?.tagName?.toLowerCase();
if (tag === "input" || tag === "textarea" || tag === "select") return;
if (target?.getAttribute("contenteditable") === "true") return;
if (e.key === "e" && !noteExpanded) {
e.preventDefault();
onEdit();