UNPKG

tiptop-editor

Version:

Notion-like editor built with Tiptap v3 and HeroUI

17 lines (16 loc) 1.16 kB
import { Editor } from '@tiptap/core'; import { SlashCommandGroupCommandsProps } from './types'; export declare const isTextSelected: (editor: Editor) => boolean; export declare const hasTextNodeInSelection: (editor: Editor) => boolean; export declare const isForbiddenNodeSelected: (editor: Editor) => boolean; export declare const canShowColorTransform: (editor: Editor) => string | false | undefined; export declare const canShowNodeTransform: (editor: Editor) => boolean | undefined; export declare const hasAtLeastOneMark: (editor: Editor) => boolean | undefined; export declare const nodeHasTextContent: (editor: Editor) => boolean | undefined; export declare const duplicateNode: (editor: Editor) => void; export declare const copyNodeTextContent: (editor: Editor) => void; export declare const deleteNode: (editor: Editor) => void; export declare const removeAllFormatting: (editor: Editor) => void; export declare const transformNodeToAlternative: (editor: Editor, targetOption: SlashCommandGroupCommandsProps) => void; export declare const addOrUpdateLink: (editor: Editor, url: string) => void; export declare const unsetLink: (editor: Editor) => void;