@sqx717/element-tiptap-vue3-fixed
Version:
🌸A modern WYSIWYG rich-text editor using tiptap and Element Plus for Vue3
23 lines (22 loc) • 548 B
TypeScript
import { Extension } from '@tiptap/core';
export interface IndentOptions {
types: string[];
minIndent: number;
maxIndent: number;
}
declare module '@tiptap/core' {
interface Commands<ReturnType> {
indent: {
/**
* Set the indent attribute
*/
indent: () => ReturnType;
/**
* Set the outdent attribute
*/
outdent: () => ReturnType;
};
}
}
declare const Indent: Extension<IndentOptions, any>;
export default Indent;