IME / Composition and flushing the DOM

In relation to this issue:

We have a use case on a Android WebView, where we would like to save our document and not lose the current word that is being composed via composition.

We found the private API on EditorView, inDOMChange which we can call .finish(true) which forces that content into our document. Is there a better approach to achieve this or is there a possibility of making that API (or parts of it) public?

Thanks in advance,


Using inDomChange.finish should mostly work here, I think (though it may terminate the composition). I am hesitant to start adding public APIs for this until we have a clear idea of how to solve #543.

1 Like

There’s some progress happening in issue #543. Please help test the new code if you’re able to!