mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 09:16:22 +02:00
feat: enhance validation and formatting in editor and sidebar components
This commit is contained in:
parent
7bd638668a
commit
4cef8cc93f
6 changed files with 106 additions and 110 deletions
|
|
@ -66,7 +66,11 @@ function ensureTitleBlock(content: any[] | undefined): any[] {
|
|||
return content;
|
||||
}
|
||||
|
||||
export default function BlockNoteEditor({ initialContent, onChange, useTitleBlock = false }: BlockNoteEditorProps) {
|
||||
export default function BlockNoteEditor({
|
||||
initialContent,
|
||||
onChange,
|
||||
useTitleBlock = false,
|
||||
}: BlockNoteEditorProps) {
|
||||
const { resolvedTheme } = useTheme();
|
||||
|
||||
// Track the initial content to prevent re-initialization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue