> What other choice is there, if iOS restricts it?
Normal contenteditable, just as everyone has done successfully for many years. There’s a reason why almost no one does things in this canvas way at all, and even closer to no one does it so on mobile platforms.
“iOS restricts it” is altogether the wrong take. It’s more that the approach only lets the browser/keyboard see one word at a time, and that’s fundamentally limiting beyond what they can cope with. Honestly, the implementation here is one of the best ones I’ve seen, but it’s still fundamentally not acceptable.