Any y-textarea implementation advice?

I was thinking of having a go at an implementation for y-textarea. I’m pretty new to Yjs. I see that there was a similar implementation for old y-js here: GitHub - y-js/y-text: Text Type for Yjs. So I was thinking of basing the implementation on that. Any advice?.

I took a first pass at implementing using new yjs here:

I would have forked y-textarea but it was an empty repo. Will fork and raise PR if the repo gets populated with something.

Implementation based on y-text implementation, doesn’t have ‘presence’, but does support shared cursors.

In-case anybody finds this and is interested I released put this on npm,
y-textarea - npm.

1 Like