Here is my minimum reproduce:
new Plugin({
props: {
handleTextInput(view, from, to, text) {
console.log(`handleTextInput, from: ${from}, to: ${to}, text: ${text}`);
return !view.composing;
}
}
})
My quesion and expectation
I think it would give me from: 1, end: 3, text: 🤡
as result, since '🤡'.length === 2
and now is after composition end. Or I have anything misunderstood?
@marjin Is the current performance align with your expectations?