/
You can also passed the default options inherited from TipTap. By default you can use a tuiEditorOptionsProvider
helper to override TUI_EDITOR_OPTIONS.
Description of the available configurations:
appearance
Visual presets of interactive components
colors
It accepts ReadonlyMap<string, string>
: the key is the name of the color (used only for hint and accessibility), the value – HTML color code.
blankColor
it accepts string
(HTML color code).
fontOptions
translate
icons
spellcheck
enableDefaultStyles
Passed content is parsed by ProseMirror. To hook into the parsing, you can pass parseOptions which are then handled by ProseMirror. By default, whitespace is collapsed as per HTML's rules. Pass true to preserve whitespace, but normalize newlines to spaces, and 'full' to preserve whitespace entirely.
test text test text 2
For advanced use cases, you can pass editorProps which will be handled by ProseMirror . You can use it to override various editor events or change editor DOM element attributes, for example to add some Tailwind classes. Here is an example:
Hello world
Hello world
<p>Hello world</p>