ShareDB with Textarea example?

68 views
Skip to first unread message

Richard Caceres

unread,
May 22, 2016, 1:47:24 AM5/22/16
to Derby
Hello, I have been a longtime ShareJS 6 user and am looking to upgrade to ShareDB to make use of new features and cleaner apis.

However, I cannot find any examples of ShareDB with a textarea. I am pretty certain it must be possible because it supports the ot-types.

Does anyone have an example of using ShareDB with the "text" type used on a textarea?

If not, what is the best way to do this? Should I port over this old textarea code (https://github.com/share/ShareJS/blob/master/lib/client/textarea.js) to work with ShareDB? 

Thank you.

Richard Caceres

unread,
May 25, 2016, 3:31:12 AM5/25/16
to Derby
Hello again. I now have something that seems to be working. So that no one else has to go through this trouble, I created an example and posted it to github. Code review or testing is appreciated, because I don't know if there's anything I missed. 

Reply all
Reply to author
Forward
0 new messages