From c89042f1425e1c2b237d5f68ba9c4d1433d65ff1 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:36:10 +0800 Subject: [PATCH] chore: wording --- packages/page-controller/src/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/page-controller/src/actions.ts b/packages/page-controller/src/actions.ts index 3a7c4fd..3c948be 100644 --- a/packages/page-controller/src/actions.ts +++ b/packages/page-controller/src/actions.ts @@ -123,7 +123,7 @@ export async function inputTextElement(element: HTMLElement, text: string) { // to Plan B (execCommand) if the text wasn't actually inserted. // // Plan A: Dispatch synthetic events - // Works: React contenteditable, Quill, LinkedIn. + // Works: React contenteditable, Quill. // Fails: Slate.js, some contenteditable editors that ignore synthetic events. // Sequence: beforeinput -> mutation -> input -> change -> blur @@ -172,7 +172,7 @@ export async function inputTextElement(element: HTMLElement, text: string) { if (!planASucceeded) { // Plan B: execCommand fallback (deprecated but widely supported) - // Works: LinkedIn, Quill, Slate.js, react contenteditable components. + // Works: Quill, Slate.js, react contenteditable components. // This approach integrates with the browser's undo stack and is handled // natively by most rich-text editors. element.focus()