editcrafter
Version:
To use **EditCrafter** with Tailwind CSS, you need to set up Tailwind CSS in your project. Here's a step-by-step guide to help you integrate Tailwind CSS and customize your `tailwind.config.js` file for use with **EditCrafter**.
26 lines (25 loc) • 645 B
TypeScript
import { Editor } from '@tiptap/react';
import { EditorView } from '@tiptap/pm/view';
import { EditorState } from '@tiptap/pm/state';
export interface LinkProps {
url: string;
text?: string;
openInNewTab?: boolean;
}
export interface ShouldShowProps {
editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
from: number;
to: number;
}
export interface FormatAction {
label: string;
icon?: React.ReactNode;
action: (editor: Editor) => void;
isActive: (editor: Editor) => boolean;
canExecute: (editor: Editor) => boolean;
shortcuts: string[];
value: string;
}