tiptap-extension-resize-image
Version:
A tiptap image resizing extension for React, Vue, Next, and VanillaJS. Additionally, it can align the image position.
27 lines • 740 B
TypeScript
interface NodeViewContext {
node: any;
editor: any;
view: any;
getPos: (() => number) | undefined;
}
export declare class ImageNodeView {
private context;
private elements;
private inline;
constructor(context: NodeViewContext, inline: boolean);
private createElements;
private clearContainerBorder;
private dispatchNodeView;
private removeResizeElements;
private setupImageAttributes;
private setupDOMStructure;
private createPositionController;
private createResizeHandler;
private setupContainerClick;
private setupContentClick;
initialize(): {
dom: HTMLElement;
};
}
export {};
//# sourceMappingURL=image-node-view.d.ts.map