LegacyRichEditor is a shared metadata-free editor profile that powers both MDEditor and HTMLEditor.
Use it when you want the same native feature set and switch only the source tab mode between markdown and html.
import { LegacyRichEditor } from '@lyfie/luthor';
import '@lyfie/luthor/styles.css';
export function App() {
return (
<LegacyRichEditor
defaultEditorView="markdown"
/>
);
}LegacyRichEditorProps inherits ExtensiveEditorProps except featureFlags, availableModes, initialMode, and defaultEditorView, then re-adds constrained variants:
sourceFormat: 'both' (default) | 'markdown' | 'html'initialMode: 'visual' (default) | 'json' | 'markdown' | 'html' (validated against sourceFormat)defaultEditorView: 'visual' (default) | 'json' | 'markdown' | 'html' (validated against sourceFormat)featureFlags: undefined (default) | FeatureFlagOverrides (metadata-heavy features remain disabled)sourceFormat="both" uses Visual/Markdown/HTML tabssourceFormat="markdown" uses Visual/JSON/Markdown tabssourceFormat="html" uses Visual/JSON/HTML tabsDefault toolbar sections focus on writing and structure: