@tiptap/core
Version:
headless rich text editor
17 lines (16 loc) • 617 B
TypeScript
import type { Plugin, PluginKey } from '@tiptap/pm/state';
import { RawCommands } from '../types.js';
declare module '@tiptap/core' {
interface Commands<ReturnType> {
setMeta: {
/**
* Store a metadata property in the current transaction.
* @param key The key of the metadata property.
* @param value The value to store.
* @example editor.commands.setMeta('foo', 'bar')
*/
setMeta: (key: string | Plugin | PluginKey, value: any) => ReturnType;
};
}
}
export declare const setMeta: RawCommands['setMeta'];