diff --git a/web/components/editor.tsx b/web/components/editor.tsx index d64dcc78..90713720 100644 --- a/web/components/editor.tsx +++ b/web/components/editor.tsx @@ -20,6 +20,7 @@ import { exhibitExts } from 'common/util/parse' import { FileUploadButton } from './file-upload-button' import { linkClass } from './site-link' import Iframe from 'common/util/tiptap-iframe' +import { CodeIcon, PhotographIcon } from '@heroicons/react/solid' const proseClass = clsx( 'prose prose-p:my-0 prose-li:my-0 prose-blockquote:not-italic max-w-none prose-quoteless leading-relaxed', @@ -36,7 +37,7 @@ export function useTextEditor(props: { const editorClass = clsx( proseClass, - 'box-content min-h-[6em] textarea textarea-bordered text-base' + 'min-h-[6em] resize-none outline-none border-none pt-3 px-4 focus:ring-0' ) const editor = useEditor({ @@ -105,7 +106,7 @@ export function TextEditor(props: { return ( <> {/* hide placeholder when focused */} -
+
{editor && ( )} - +
+ + {/* Spacer element to match the height of the toolbar */} + + + {/* Toolbar, with buttons for image and embeds */} +
+
+
+ + +
+
+ +
+
+
{upload.isLoading && Uploading image...} {upload.isError && (