You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Summary
Web implementation was missing the HTML normalizer
- implemented the normalizer, mirroring the one in the native code
- tests also mirror the native ones
## Test Plan
Try pasting styled text from `Google Docs`, `MS Word` or any other
platform
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ❌ |
| Android | ❌ |
| Web | ✅ |
## Checklist
- [x] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)
Copy file name to clipboardExpand all lines: docs/INPUT_API_REFERENCE.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -643,9 +643,9 @@ If true, Android will use experimental synchronous events. This will prevent fro
643
643
644
644
If true, external HTML pasted/inserted into the input (e.g. from Google Docs, Word, or web pages) will be normalized into the canonical tag subset that the enriched parser understands. However, this is an experimental feature, which has not been thoroughly tested. We may decide to enable it by default in a future release.
Copy file name to clipboardExpand all lines: docs/WEB.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ Web support is still experimental. APIs and behavior can change in future releas
16
16
- Submit props: `submitBehavior` and `onSubmitEditing`. `returnKeyType` is only a hint, it maps to [enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint) (`done`, `go`, `next`, `previous`, `search`, `send`, `default`/`enter`). Not all values of `ReturnKeyTypeOptions` are supported, the behavior of this prop is heavily dependent on the browser's capabilities.
17
17
- Input theming via `placeholderTextColor`, `cursorColor` and `selectionColor` props
18
18
- Keyboard shortcuts for formatting
19
+
-`useHtmlNormalizer`
19
20
20
21
## Keyboard shortcuts
21
22
@@ -26,7 +27,6 @@ See [Web Keyboard Shortcuts](./INPUT_API_REFERENCE.md#web-keyboard-shortcuts) fo
26
27
-**`returnKeyLabel`**: ignored on web, it's not possible to set it inside a browser.
27
28
-**Automatic link detection**: `linkRegex` is ignored. Links only work when set explicitly via the `setLink` ref method.
28
29
-**Context menu**: `contextMenuItems` is ignored.
29
-
-**HTML normalizer flag**: `useHtmlNormalizer` is ignored; paste behavior follows the browser pipeline.
30
30
-**RN layout ref methods**: `measure`, `measureInWindow`, `measureLayout`, and `setNativeProps` are no-ops.
31
31
-**`EnrichedText`**: The read-only component is not exported on web.
32
32
-**`ViewProps`**: Props inherited from `View` beyond the implemented subset are not forwarded.
0 commit comments