diff --git a/web/.gitignore b/web/.gitignore
index 32d4a19e..06749214 100644
--- a/web/.gitignore
+++ b/web/.gitignore
@@ -2,4 +2,5 @@
.next
node_modules
out
-tsconfig.tsbuildinfo
\ No newline at end of file
+tsconfig.tsbuildinfo
+.env*
diff --git a/web/components/editor.tsx b/web/components/editor.tsx
index 27e8ac45..34113d0a 100644
--- a/web/components/editor.tsx
+++ b/web/components/editor.tsx
@@ -42,6 +42,7 @@ import ItalicIcon from 'web/lib/icons/italic-icon'
import LinkIcon from 'web/lib/icons/link-icon'
import { getUrl } from 'common/util/parse'
import { TiptapSpoiler } from 'common/util/tiptap-spoiler'
+import { ImageModal } from './editor/image-modal'
const DisplayImage = Image.configure({
HTMLAttributes: {
@@ -232,6 +233,7 @@ export function TextEditor(props: {
children?: React.ReactNode // additional toolbar buttons
}) {
const { editor, upload, children } = props
+ const [imageOpen, setImageOpen] = useState(false)
const [iframeOpen, setIframeOpen] = useState(false)
const [marketOpen, setMarketOpen] = useState(false)
@@ -245,12 +247,19 @@ export function TextEditor(props: {
{/* Toolbar, with buttons for images and embeds */}
- setImageOpen(true)}
className="-m-2.5 flex h-10 w-10 items-center justify-center rounded-full text-gray-400 hover:text-gray-500"
>
+
-
+