refactor(editor): add schema on block model (#9815)

This commit is contained in:
Saul-Mirone
2025-01-21 03:56:10 +00:00
parent d2bde09ef6
commit f744002808
7 changed files with 28 additions and 23 deletions
@@ -23,9 +23,9 @@ export class ImageResizeManager {
assertExists(this._imageContainer);
const dragModel = getModelByElement(this._activeComponent);
dragModel?.page.captureSync();
dragModel?.doc.captureSync();
const { width, height } = this._imageContainer.getBoundingClientRect();
dragModel?.page.updateBlock(dragModel, {
dragModel?.doc.updateBlock(dragModel, {
width: width / this._zoom,
height: height / this._zoom,
});