Re: [w3c/selection-api] setPosition/collapse should taken an optional argument for whether the caret is before or after a line break (#51)

marijnh left a comment (w3c/selection-api#51)

> But is there a way to know if caret in the browser is before or after line break?

I don't think there is, unfortunately. CodeMirror captures all user interaction that updates the selection model, so it only needs to _set_ the selection, not read it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/51#issuecomment-3309726111
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/issues/51/3309726111@github.com>

Received on Thursday, 18 September 2025 21:06:54 UTC