From 5e4a0e12c7b282e59d0b50c145c9017e0732bc1a Mon Sep 17 00:00:00 2001 From: Jiuqing Song Date: Wed, 28 Feb 2024 11:23:04 -0800 Subject: [PATCH] Bump roosterjs-editor-adapter to 0.26.3 to patch #2452 (#2453) * Fix dispose plugin issus in EditorAdapter (#2452) * Patch with #2452 --- packages/roosterjs-editor-adapter/lib/editor/EditorAdapter.ts | 4 ++-- versions.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/roosterjs-editor-adapter/lib/editor/EditorAdapter.ts b/packages/roosterjs-editor-adapter/lib/editor/EditorAdapter.ts index 62f032ddd07..80dd8a4a7f6 100644 --- a/packages/roosterjs-editor-adapter/lib/editor/EditorAdapter.ts +++ b/packages/roosterjs-editor-adapter/lib/editor/EditorAdapter.ts @@ -152,6 +152,8 @@ export class EditorAdapter extends StandaloneEditor implements IEditor { * Dispose this editor, dispose all plugins and custom data */ dispose(): void { + super.dispose(); + const core = this.contentModelEditorCore; if (core) { @@ -167,8 +169,6 @@ export class EditorAdapter extends StandaloneEditor implements IEditor { this.contentModelEditorCore = undefined; } - - super.dispose(); } /** diff --git a/versions.json b/versions.json index e12faa82cb2..78946a750fd 100644 --- a/versions.json +++ b/versions.json @@ -4,6 +4,6 @@ "packages-content-model": "0.26.4", "overrides": { "roosterjs-editor-plugins": "8.60.2", - "roosterjs-editor-adapter": "0.26.2" + "roosterjs-editor-adapter": "0.26.3" } }