Skip to content

Commit

Permalink
remove selection
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaroldi committed Sep 30, 2024
1 parent 1fa9459 commit 4c69cb9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ export class ImageEditPlugin implements ImageEditor, EditorPlugin {
if (
this.isEditing &&
event.rawEvent.button !== MouseRightButton &&
!(target.contains(this.shadowSpan) || target.contains(this.wrapper))
!(
this.shadowSpan !== event.rawEvent.target &&
(target.contains(this.shadowSpan) || target.contains(this.wrapper))
)
) {
this.applyFormatWithContentModel(
editor,
Expand Down

0 comments on commit 4c69cb9

Please sign in to comment.