Web support is still experimental. APIs and behavior can change in future releases without a major version bump. Expect breaking changes until the web path is stabilized.
- Inline marks: bold, italic, underline, strikethrough, inline code
- Headings (h1-h6)
- Blockquote, code block
- Ordered lists, unordered lists, checkbox lists
- Images (via
setImageref method and optionalonPasteImageswhen pasting image data) - Manual links (via
setLinkref method) - Mentions
- Automatic link detection
getHTML,setValue, selection mapping- Core callbacks:
onChange,onChangeState,onFocus,onBlur,onSelectionChange - Submit props:
submitBehaviorandonSubmitEditing.returnKeyTypeis only a hint, it maps to enterkeyhint (done,go,next,previous,search,send,default/enter). Not all values ofReturnKeyTypeOptionsare supported, the behavior of this prop is heavily dependent on the browser's capabilities. - Input theming via
placeholderTextColor,cursorColorandselectionColorprops - Keyboard shortcuts for formatting
useHtmlNormalizer- Setting text alignment via
setTextAlignment() textShortcuts
See Web Keyboard Shortcuts for the up-to-date list of Web keyboard shortcuts.
returnKeyLabel: ignored on web, it's not possible to set it inside a browser.- Context menu:
contextMenuItemsis ignored. - RN layout ref methods:
measure,measureInWindow,measureLayout, andsetNativePropsare no-ops. ViewProps: Props inherited fromViewbeyond the implemented subset are not forwarded.
- Customizing the styling using props:
style,htmlStyle,selectionColor. selectablepropuseHtmlNormalizeronLinkPressandonMentionPresscallbacks
ellipsizeMode: ignored on web.numberOfLines: ignored on web.- RN layout ref methods:
measure,measureInWindow,measureLayout, andsetNativePropsare no-ops.
You are responsible for sanitizing HTML on both input and output. The library does not guarantee safe or clean HTML output. This applies to any HTML you persist, render elsewhere, or accept from untrusted sources (XSS, paste attacks, etc.).