From 377b27d2b137223f60aba390fec66c326d53c087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlia=20Roldi?= Date: Thu, 6 Jun 2024 19:32:35 -0300 Subject: [PATCH] remove consoles --- .../lib/imageEdit/ImageEditPlugin.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/roosterjs-content-model-plugins/lib/imageEdit/ImageEditPlugin.ts b/packages/roosterjs-content-model-plugins/lib/imageEdit/ImageEditPlugin.ts index cb0bfb551d6..69d5fcaa4df 100644 --- a/packages/roosterjs-content-model-plugins/lib/imageEdit/ImageEditPlugin.ts +++ b/packages/roosterjs-content-model-plugins/lib/imageEdit/ImageEditPlugin.ts @@ -126,7 +126,7 @@ export class ImageEditPlugin implements ImageEditor, EditorPlugin { if (event.eventType == 'selectionChanged' && this.editor) { const selection = event.newSelection; const previousSelection = event.previousSelection; - console.log('selectionChanged', selection, previousSelection); + if (previousSelection?.type == 'image' && selection && this.shadowSpan) { const previousImage = previousSelection.image; if (previousImage) { @@ -546,7 +546,6 @@ export class ImageEditPlugin implements ImageEditor, EditorPlugin { this.wasImageResized || this.isCropMode, this.clonedImage ); - console.log('formatImageWhenSelectionChange', insertPoint); if (insertPoint) { insertPoint.marker.isSelected = true; image.isSelected = false;