UNPKG

@yuniit/element-tiptap

Version:

🌸A modern WYSIWYG rich-text editor using tiptap and Element Plus for Vue3

18 lines (17 loc) • 499 B
import { Node } from '@tiptap/core'; import { ImageDisplay } from '../utils/image'; declare module '@tiptap/core' { interface Commands<ReturnType> { box: { setBox: (options: { width?: string; height?: string; display?: ImageDisplay; 'border-width'?: number; 'border-color'?: string; }) => ReturnType; }; } } declare const BoxNode: Node<any, any>; export default BoxNode;