Open
Description
I sometimes have to do bulk inserts into an Automerge.Text, e.g. when importing a new document.
The current API accepts inserts one character at a time: text.insertAt(0, 'h', 'e', 'l', 'l', 'o')
. Doing this with bulk inserts I've hit the javascript limit on the number of arguments allowed to a function call (65536).
I'd like it if insertAt also accepted strings and treated them indistinguishably from individual characters: text.insertAt(0, 'hello')
(and maybe text.insertAt(0, 'he', 'llo')
, not sure).
Or alternatively, a new API that accepted only one single string: text.insertStringAt(0, 'hello')
.
I'm willing to attempt an implementation if you're open to it.
Metadata
Metadata
Assignees
Labels
No labels
Activity