Ein einfacher WYSIWYG Editor mit umfangreichen Features. Er kann beliebig durch Extensions erweitert werden. Siehe: TipTap Dokumentation.
Eigenschaften
| Name | Type | Default Value | Description |
|---|---|---|---|
fileHandlers | FileHandler[] | undefined | File handlers used for this editor. Will be needed if you want to support e.g. images. FileHandlers have to handle upload behavior and rendering. |
enabledFeatures | EditorFeature[] | undefined | List of features which should be enabled |
featureGroups | EditorFeature[][] | undefined | List of groups of features to order groups and features in command bar. |
isCommandBarWrapping | boolean | true | Is command bar wrapping or horizontally scrollable? If true, command bar will be wrapped to multiple lines if needed. |
placeholder | string | undefined | undefined | Placeholder Text which will be displayed if editor is empty. Requires PLACEHOLDER Feature to be enabled. |
extensions | AnyExtension[] | undefined | Additional custom TipTap Extensions. |
disabled | boolean | false | Is editor disabled or not? |
textOptions | ITextOptions | undefined | undefined | Can be used to format text output. |
content | string | undefined | undefined | Initial Editor content. |
debounceTime | number | undefined | Time to debounce change event. |
json | string | undefined | undefined | Editor content in Json format. CANNOT BE USED TO SET CONTENT INITIALLY. |
html | string | undefined | undefined | Editor content in Html format. CANNOT BE USED TO SET CONTENT INITIALLY. |
text | string | undefined | undefined | Editor content in Text format. CANNOT BE USED TO SET CONTENT INITIALLY. |
style | string | undefined | undefined | additional styles |
Weitere dazugehörige Komponenten
EditorContentRenderer
Eigenschaften
| Name | Type | Default Value | Description |
|---|---|---|---|
extensions | AnyExtension[] | undefined | Additional custom TipTap Extensions (will be needed to render content correctly). |
json | string | undefined | undefined | Editor content in Json format. |
html | string | undefined | undefined | Editor content in Html format. |
whiteSpace | "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap" | "break-spaces" | undefined | White space handling. |
checkboxStates | Map<string, boolean> | undefined | optional map of checkbox states. Only needed if task items are present and need to be checked. |
checkboxDisabled | undefined | undefined | |
style | string | undefined | undefined | additional styles. |