Extensive
ExtensiveEditor is the base full-feature preset editor.
Usage
import { ExtensiveEditor } from '@lyfie/luthor';
import '@lyfie/luthor/styles.css';
export function App() {
return <ExtensiveEditor placeholder="Write anything..." />;
}Core props
initialTheme:'light' (default) | 'dark'showDefaultContent:true (default) | falseplaceholder:'Write anything...' (default) | string | { visual?: string; jsonb?: string }initialMode:'visual' (default) | 'jsonb'availableModes:['visual', 'jsonb'] (default) | ('visual' | 'jsonb')[]toolbarPosition:'top' (default) | 'bottom'toolbarAlignment:'left' (default) | 'center' | 'right'isToolbarEnabled:true (default) | falseminimumDefaultLineHeight:1.5 (default) | string | numberscaleByRatio:false (default) | truesyncHeadingOptionsWithCommands:true (default) | falsecommandPaletteShortcutOnly:false (default) | trueisCopyAllowed:true (default) | falsesyntaxHighlighting:'auto' | 'disabled'| extension default behavior if omitted
Ref API
injectJSONB(content: string): voidgetJSONB(): string
Notes
This is the base preset that other presets build on.
