Lexical: Added media resize support via drag handles

This commit is contained in:
Dan Brown
2024-09-08 13:37:13 +01:00
parent e5b6d28bca
commit bed2c29a33
8 changed files with 133 additions and 43 deletions

View File

@ -63,4 +63,11 @@ export function updateElementWithCommonBlockProps(element: HTMLElement, node: Co
if (node.__alignment) {
element.classList.add('align-' + node.__alignment);
}
}
export interface NodeHasSize {
setHeight(height: number): void;
setWidth(width: number): void;
getHeight(): number;
getWidth(): number;
}