| Descriptive label for the input element
Type: string | |
|---|
| Additional TipTap extensions to be added to the editor.
Type: array | [] |
|---|
| Whether the input allows background color to be introduced in the text.
Type: boolean | false |
|---|
| Whether the input allows for block quote.
Type: boolean | true |
|---|
| Whether the input allows for bold to be introduced in the text.
Type: boolean | true |
|---|
| Whether the input allows for bullet list to be introduced in the text.
Type: boolean | true |
|---|
| Whether the input allows inline code (wrapped in backticks).
Type: boolean | true |
|---|
| Whether the input allows codeblock to be introduced in the text.
Type: boolean | true |
|---|
| Whether the input allows color to be introduced in the text.
Type: boolean | false |
|---|
| Whether the input allows different font-families to be introduced in the text.
Type: boolean | false |
|---|
| Whether the input allows font size to be introduced in the text.
Type: boolean | false |
|---|
| Whether the input allows image resize to be introduced in the text.
Type: boolean | false |
|---|
| Whether the input allows inline images to be rendered.
Type: boolean | false |
|---|
| Whether the input allows for italic to be introduced in the text.
Type: boolean | true |
|---|
| Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
line breaks can still be entered by pressing shift+enter.
Type: boolean | false |
|---|
| Whether the input allows line height to be introduced in the text.
Type: boolean | false |
|---|
| Whether the input allows for strike to be introduced in the text.
Type: boolean | true |
|---|
| Allow Tables to be used in to the editor
Type: boolean | false |
|---|
| Allow text alignment controls (left, center, right, justify) in the editor.
Type: boolean | true |
|---|
| Whether the input allows for underline to be introduced in the text.
Type: boolean | true |
|---|
| Whether the input allows variables to be introduced in the text.
Type: boolean | false |
|---|
| Whether the input should receive focus after the component has been
mounted. Either one of start, end, all or a Boolean or a Number.
start Sets the focus to the beginning of the input
end Sets the focus to the end of the input
all Selects the whole contents of the input
Number Sets the focus to a specific position in the input
true Defaults to start
false Disables autofocus
Type: boolean|string|number Values: truefalsestartendallnumber | false |
|---|
| suggestion object containing the items query function.
The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion
The only required key is the items function which is used to query the channels for suggestion.
items({ query }) => { return [ChannelObject]; }
ChannelObject format:
{ name: string, id: string, locked: boolean, channelKey?: string }
When null, it does not add the plugin. Setting locked to true will display a lock rather than hash.
Type: object | null |
|---|
| Enables the Custom Link extension and optionally passes configurations to it
It is not recommended to use this and the built in TipTap link extension at the same time.
The custom link does some additional things on top of the built in TipTap link
extension such as styling phone numbers and IP adresses as links, and allows you
to linkify text without having to type a space after the link. Currently it is missing some
functionality such as editing links and will likely require more work to be fully usable,
so it is recommended to use the built in TipTap link for now.
Type: boolean|object | false |
|---|
| Whether the input is editable
Type: boolean | true |
|---|
| Manually hide the link bubble menu. The link bubble menu is shown when a link is selected via the cursor.
There are some cases when you may want the link to remain selected but hide the bubble menu such as when You
are showing a custom link editor popup.
Type: boolean | false |
|---|
| Additional class name for the input element. Only accepts a String value
because this is passed to the editor via options. For multiple classes,
join them into one string, e.g. "d-p8 d-hmx96"
Type: string | '' |
|---|
| Enables the TipTap Link extension and optionally passes configurations to it
It is not recommended to use this and the custom link extension at the same time.
Type: boolean|object | false |
|---|
| Phone number strings to display as clickable links, typically provided
by the backend via rich_media. Matching text in the editor will be
marked and emit a phone-click event when clicked. An empty array or
null disables phone linking.
Type: string[]|null | null |
|---|
| suggestion object containing the items query function.
The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion
The only required key is the items function which is used to query the contacts for suggestion.
items({ query }) => { return [ContactObject]; }
ContactObject format:
{ name: string, avatarSrc: string, id: string }
When null, it does not add the plugin.
Type: object | null |
|---|
| Value of the input. The object format should match TipTap's JSON
document structure: https://tiptap.dev/guide/output#option-1-json
Type: object|string | '' |
|---|
| The output format that the editor uses when emitting the "@input" event.
One of text, json, html, markdown. See https://tiptap.dev/guide/output for
examples.
Type: string Values: textjsonhtmlmarkdown | 'html' |
|---|
| When this option is false the editor will only ever paste plain text, no rich text formatting will be applied,
and any HTML will be rendered as text.
Type: boolean | true |
|---|
| Placeholder text
Type: string | '' |
|---|
| Controls how whitespace is handled when parsing HTML content.
- 'full': All whitespace is preserved
- true: Whitespace in inline content is preserved, whitespace-only nodes between blocks are removed
- false: Standard HTML whitespace collapsing
Type: boolean|string Values: fulltruefalse | 'full' |
|---|
| Prevents the user from typing any further. Deleting text will still work.
Type: boolean | false |
|---|
| suggestion object containing the items query function.
The valid keys passed into this object can be found here: https://tiptap.dev/api/utilities/suggestion
The only required key is the items function which is used to query the slash commands for suggestion.
items({ query }) => { return [SlashCommandObject]; }
SlashCommandObject format:
{ command: string, description: string, parametersExample?: string }
The "parametersExample" parameter is optional, and describes an example
of the parameters that command can take.
When null, it does not add the plugin.
Note that slash commands only work when they are the first word in the input.
Type: object | null |
|---|
| Show text in HTML div tags instead of paragraph tags
Type: boolean | false |
|---|
| Array of available variable items that can be inserted.
Type: array | [] |
|---|