@tiptap/core
Version:
headless rich text editor
15 lines (14 loc) • 483 B
TypeScript
import { RawCommands } from '../types.js';
declare module '@tiptap/core' {
interface Commands<ReturnType> {
setNodeSelection: {
/**
* Creates a NodeSelection.
* @param position - Position of the node.
* @example editor.commands.setNodeSelection(10)
*/
setNodeSelection: (position: number) => ReturnType;
};
}
}
export declare const setNodeSelection: RawCommands['setNodeSelection'];