| | |
| | | import { LexicalComposer } from '@lexical/react/LexicalComposer' |
| | | import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin' |
| | | import { ContentEditable } from '@lexical/react/LexicalContentEditable' |
| | | import { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary' |
| | | import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary' |
| | | import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin' |
| | | import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin' |
| | | // import TreeView from './plugins/tree-view' |
| | |
| | | <LexicalComposer initialConfig={{ ...initialConfig, editable }}> |
| | | <div className='relative min-h-5'> |
| | | <RichTextPlugin |
| | | contentEditable={<ContentEditable className={`${className} outline-none ${compact ? 'text-[13px] leading-5' : 'text-sm leading-6'} text-text-secondary`} style={style || {}} />} |
| | | contentEditable={<ContentEditable className={`${className} outline-none ${compact ? 'leading-5 text-[13px]' : 'leading-6 text-sm'} text-text-secondary`} style={style || {}} />} |
| | | placeholder={<Placeholder value={placeholder} className={cn('truncate', placeholderClassName)} compact={compact} />} |
| | | ErrorBoundary={LexicalErrorBoundary} |
| | | /> |