TextEditor
Installation
Section titled “Installation”npm install @sk-web-gui/reactAnvändning
Section titled “Användning”import { TextEditor } from '@sk-web-gui/react';| Prop | Typ | Standard | Beskrivning |
|---|---|---|---|
name | string | – | |
readOnly | boolean | – | |
value | TextEditorValue | – | |
disableToolbar | boolean | – | |
className | string | – | |
toolbar | ToolbarConfig | – | |
visualZoom | boolean | – | Show visual zoom controls (+/-) in the toolbar. Does not affect exported content. |
onTextChange | (delta: Delta, oldDelta: Delta, source: string) => void | – | |
onSelectionChange | (range: Range, oldRange: Range, source: string) => void | – | |
onChange | (event: CustomOnChangeEvent<TextEditorValue, HTMLInputElement>) => void | – |
Storyvarianter
Section titled “Storyvarianter”- Template – standardstory
- InsertText – standardstory
- Implementation: @sk-web-gui/text-editor
- Storybook: TextEditor