Utils
serialize
Bridge a rich editor doc to plain text (and structured mentions) and back — independent of any one component.
Preview
Standalone, independent of any one component
Installed to components/control-ui/chat-composer-editor/serialize.ts with the ChatComposer rich editor, so the shared helper stays in one place.
Source
Installed util source