UNPKG

kodama-ui

Version:

Kodama UI is a Vue 3 component library that provides a set of components & funcionality to build your application.

25 lines (24 loc) 742 B
import { Node } from '@tiptap/core'; declare module '@tiptap/core' { interface Commands<ReturnType> { resizableMedia: { /** * Set media */ setMedia: (options: { 'media-type': 'img' | 'video'; 'src': string; 'alt'?: string; 'title'?: string; 'width'?: string; 'height'?: string; }) => ReturnType; }; } } export interface MediaOptions { HTMLAttributes: Record<string, any>; } export declare const IMAGE_INPUT_REGEX: RegExp; export declare const VIDEO_INPUT_REGEX: RegExp; export declare const ResizableMedia: Node<MediaOptions, any>;