From 13b5d34b83ae969ac8e23d84a598e76d95e2d426 Mon Sep 17 00:00:00 2001 From: Jiuqing Song Date: Thu, 9 Feb 2023 17:05:27 -0800 Subject: [PATCH] Fix a pending format issue in firefox (#1572) --- .../lib/corePlugins/PendingFormatStatePlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/roosterjs-editor-core/lib/corePlugins/PendingFormatStatePlugin.ts b/packages/roosterjs-editor-core/lib/corePlugins/PendingFormatStatePlugin.ts index da38d8a0fd2..eff1d32c626 100644 --- a/packages/roosterjs-editor-core/lib/corePlugins/PendingFormatStatePlugin.ts +++ b/packages/roosterjs-editor-core/lib/corePlugins/PendingFormatStatePlugin.ts @@ -99,7 +99,7 @@ export default class PendingFormatStatePlugin this.editor.insertNode(this.state.pendableFormatSpan); this.editor.select( this.state.pendableFormatSpan, - PositionType.Before, + PositionType.Begin, this.state.pendableFormatSpan, PositionType.End );