Color
The Color extension allows you to add color to your editor.
- Based on TipTap's Color extension. @tiptap/extension-color
Usage
tsx
import { Color } from 'reactjs-tiptap-editor';
const extensions = [
...,
// Import Extensions Here
Color
];
Options
colors
Type: string[]
Default: undefined
An array of color options to display in the color picker. If not provided, a default set of colors will be used.
js
import { COLORS_LIST } from 'reactjs-tiptap-editor'
defaultColor
Type: string
Default: undefined
js
import { DEFAULT_COLOR } from 'reactjs-tiptap-editor'