Rich text / foldkit-richtext-dom/editor

toMessage

function · packages/richtext-dom/src/editor.ts:107

function toMessage(command: RichText.Command): EditorEvent | undefined

What a browser intent means to an editor. The adapter reports only plain insertions, so an insertion carrying marks is refused rather than quietly losing them: what a marked insertion means is the editor's decision, not the adapter's, and the adapter never has one to report.