UNPKG

reactjs-tiptap-editor

Version:

A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React

19 lines (18 loc) 622 B
import { HighlightOptions as TiptapHighlightOptions } from '@tiptap/extension-highlight'; import { GeneralOptions } from '../../types'; export * from './components/RichTextHighlight'; export interface HighlightOptions extends TiptapHighlightOptions, GeneralOptions<HighlightOptions> { /** * The default color to use initially */ defaultColor?: string; } export interface HighlightStorage { currentColor?: string; } declare module '@tiptap/core' { interface Storage { highlight: HighlightStorage; } } export declare const Highlight: import('@tiptap/core').Mark<HighlightOptions, any>;