From 9920366b9296ab373cff0d7f5f3e5a002113f97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Wed, 17 Jul 2024 09:52:18 +0200 Subject: [PATCH] shorten explanation --- src/web/parserUtils.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/web/parserUtils.ts b/src/web/parserUtils.ts index eec5034d..350a7c2a 100644 --- a/src/web/parserUtils.ts +++ b/src/web/parserUtils.ts @@ -246,20 +246,6 @@ function parseText(target: HTMLElement, text: string, cursorPositionIndex: numbe /** * Calculates start, count and before values. Whenever the text is being changed you can think of it as a replacement operation, * where parts of the string get replaced with new content. - * For example: - * - * 1. Text input is abc - * 2. User adds "d" - * 3. start: 3, before: 0, count: 1 - * - * We started to replace text starting from position 3, we replaced 0 characters and added 1 character. - * Another example: - * - * 1. Text input is abc - * 2. User selects "b" and adds "d" - * 3. start: 1, before: 1, count: 1 - * - * We started to replace text starting from position 1, we replaced 1 character and added 1 character. * * This is to align the onChange event with the native counter part: * - https://github.com/facebook/react-native/pull/45248