fn caret_byte(ctx: &Context, id: Id, text: &str) -> usize
Byte offset of the caret in text edit id over text (its end when the edit has none yet).
id
text