diff --git a/web/components/editor.tsx b/web/components/editor.tsx index d7836c34..c15d17b1 100644 --- a/web/components/editor.tsx +++ b/web/components/editor.tsx @@ -73,7 +73,9 @@ export function useTextEditor(props: { const editorClass = clsx( proseClass, !simple && 'min-h-[6em]', - 'outline-none pt-2 px-4' + 'outline-none pt-2 px-4', + 'prose-img:select-auto', + '[&_.ProseMirror-selectednode]:outline-dotted [&_*]:outline-indigo-300' // selected img, emebeds ) const editor = useEditor( @@ -164,7 +166,7 @@ export function TextEditor(props: { {/* Toolbar, with buttons for images and embeds */}
- + - + - +