UNPKG

@vuux/editor

Version:

Vue Nuxt 富文本编辑器

29 lines (28 loc) 1.23 kB
import { default as _Editor } from './src/index.vue'; import { markdownToHtml } from './src/hook/useParse'; export { markdownToHtml }; export declare const Editor: import('./withInstall').SFCWithInstall<import('vue').DefineComponent<import('./src/types').Props, { insertImage: (url?: string, defaultAlt?: string) => void; setMarkdown: (md: string) => void; getMarkdown: () => string; getHtml: () => string | Promise<string>; clearMarkdown: () => void; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { error: (...args: any[]) => void; success: (...args: any[]) => void; }, string, import('vue').PublicProps, Readonly<import('./src/types').Props> & Readonly<{ onError?: ((...args: any[]) => any) | undefined; onSuccess?: ((...args: any[]) => any) | undefined; }>, { height: string; uploadName: string; theme: { color?: string; backgroundColor?: string; textColor?: string; }; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { contentEl: HTMLDivElement; textareaEl: HTMLTextAreaElement; }, HTMLDivElement>> & Record<string, any>; export type EditorInstance = InstanceType<typeof _Editor>;