reactjs-tiptap-editor
Version:
A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React
15 lines (14 loc) • 610 B
TypeScript
import { EditorState } from '@tiptap/pm/state';
export declare function createColumn(colType: any, index: any, colContent?: null): any;
export declare function getColumnsNodeTypes(schema: any): any;
export declare function createColumns(schema: any, colsCount: any, colContent?: null): any;
export declare function addOrDeleteCol({ state, dispatch, type, }: {
state: EditorState;
dispatch: any;
type: 'addBefore' | 'addAfter' | 'delete';
}): boolean;
export declare function gotoCol({ state, dispatch, type }: {
state: EditorState;
dispatch: any;
type: 'before' | 'after';
}): boolean;