Closed mweel1 closed 2 months ago
Which prop are you setting? There are two props for class names.
Thanks for the response...
className={`h-[200px] border rounded min-h-full ${
theme == "dark" ? "dark-theme dark-editor" : ""
}`}
autoFocus={true}
toolbar={{
headings: true,
lists: true,
quote: true,
thematicBreak: true,
markdownShortcut: true,
}}
plugins={[
toolbarPlugin({
toolbarContents: () => (
<>
<UndoRedo />
<BoldItalicUnderlineToggles />
</>
),
}),
headingsPlugin(),
listsPlugin(),
quotePlugin(),
thematicBreakPlugin(),
markdownShortcutPlugin(),
]}
{...props}
ref={editorRef}
/>
@petyosi I noticed you closed this ticket, is this fixed somehow?
You should use the contentEditableClassName
prop to specify the height of the content area - it will catch the clicks and focus the component.
If I set a height on the class, the entire control is not clickable to start editing, only the 1st line is.