I noticed that when we try to link some text that’s being type on Android, the anchor tag isn’t inserted into the DOM until the composition ends.
I saw that ProseMirror schedules it to end after 5 seconds of inactivity, and when this occurs the link is inserted into the DOM and if the user types it will continue the composition from there.
But if we (I know inadvisably) use the same internal function (
__endComposition) the link gets applied as expected, but the composition cannot be continued like it can when this is called via
scheduleComposeEnd - eg you can type but autosuggestions no longer work.
Additionally it seems that the
scheduleComposeEnd would still fire after 5 seconds and at that point the text the user was typing is replaced by the next character they type.
I know this is a pretty advanced case but I wondered if anyone might have advice for us.
Thanks for reading!