Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update index.tsx

Kiran Kdc46ba3bde80
diff --git a/packages/ui/src/rich-text-area/index.tsx b/packages/ui/src/rich-text-area/index.tsx
index bf9251b3e0..c2aea802fc 100644
--- a/packages/ui/src/rich-text-area/index.tsx
+++ b/packages/ui/src/rich-text-area/index.tsx
@@ -86,7 +86,12 @@ export const RichTextArea = forwardRef<RichTextAreaRef, RichTextAreaProps>(
// Images
...(uploadImage
? [
- Image,
+ Image.configure({
+ inline: false,
+ HTMLAttributes: {
+ class: "rounded-lg max-w-full h-auto",
+ },
+ }),
FileHandler.configure({
allowedMimeTypes: [
"image/png",
@@ -140,6 +145,7 @@ export const RichTextArea = forwardRef<RichTextAreaRef, RichTextAreaProps>(
attributes: {
class: cn(
"prose prose-sm prose-neutral max-w-none focus:outline-none",
+ "[&_.ProseMirror-selectednode]:outline [&_.ProseMirror-selectednode]:outline-2 [&_.ProseMirror-selectednode]:outline-blue-500 [&_.ProseMirror-selectednode]:outline-offset-2",
editorClassName,
),
},