sharejs 0.7 and ace editor

637 views
Skip to first unread message

jiun bookworm

unread,
Oct 24, 2013, 6:57:59 PM10/24/13
to sha...@googlegroups.com

How different is it to get an ace editor working with  0.7?
iv seen and attachTextArea method, but im not sure how or whether
i can get 0.7  to work with ace, anyone with an attachAceArea example
out-there? or a hint of what i could do when writting one?

regards
Jiun.

jiun bookworm

unread,
Oct 29, 2013, 1:00:52 PM10/29/13
to sha...@googlegroups.com
Ok,
after messing around,  i decided to extend sharejs with the old attach_ace from 0.6x,   and attempted to use it,
after attaching, i get an error about   object missing method getText,    where is this method supposed to be implemented?

TypeError
  1. message: "Object [object Object] has no method 'getText'"
  2. stack: (...)
  3. get stack: function () { [native code] }
  4. set stack: function () { [native code] }
  5. __proto__:

jiun bookworm

unread,
Oct 30, 2013, 11:18:41 AM10/30/13
to sha...@googlegroups.com
Seems that it works without too much  of a husle,
sorry for rubber-ducking all of you.
thanks for listening

Simone Raimondi

unread,
Dec 3, 2013, 9:46:18 AM12/3/13
to sha...@googlegroups.com
Hello Jiun,

I am working on a student project and I would like to use sharejs 0.7 with the ace editor. Can you tell me what were the modifications you made in order to make it work again?

Thank you in advance 

jiun bookworm

unread,
Dec 12, 2013, 9:08:00 AM12/12/13
to sha...@googlegroups.com
Hello Simone:
i did not alter the original much,  here is a gist with some explanation,  please read the comments carefully.

https://gist.github.com/thebookworm101/7928391

what you may need to do for yourself is what to do with the function at the bottom,

best of luck with your student project.
Sorry for the delay, it seems  forum messages  decide when they feel like coming to my inbox  and the rest of the time they dont make it.

Greg Fodor

unread,
Jan 12, 2014, 10:41:21 PM1/12/14
to sha...@googlegroups.com
For those still looking for this, here is a gist that I am using. I'll put this into github and clean it up once I have tested it further.

jiun bookworm

unread,
Jan 13, 2014, 1:17:10 PM1/13/14
to sha...@googlegroups.com
Thats awesome,  thanks for sharing.



--
You received this message because you are subscribed to the Google Groups "ShareJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharejs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Greg Fodor

unread,
Jan 15, 2014, 2:25:31 AM1/15/14
to sha...@googlegroups.com
FYI this implementation still seems buggy for me, I haven't put any time into fixing it up yet. Once I get out the kinks I'll put it somewhere better than gist. Let me know if you make any progress as well :)

Joseph Gentle

unread,
Feb 28, 2014, 7:09:59 PM2/28/14
to sha...@googlegroups.com
Let me know if you need a hand - I was on holiday for most of January,
and I'm only now catching up on all my email.

It would be great to have a share-ace binding project which did all
the work sitting around somewhere to point people to. Would you be
interested in running that Greg?

Robert Liebowitz

unread,
Nov 3, 2014, 5:34:49 PM11/3/14
to sha...@googlegroups.com
Has there been any progress on this front? 

Dmitry Kharitonov

unread,
Jan 2, 2016, 5:13:58 PM1/2/16
to ShareJS
I wrote this for latest ace and share js. This works fine for meme https://gist.github.com/geakstr/6c8f3644dbd126d63164

Dmitry Kharitonov

unread,
Jan 6, 2016, 7:49:28 AM1/6/16
to ShareJS
And (possible buggy, not fully tested) for json0 type https://gist.github.com/geakstr/86d996aa8a8d69771eb1

Neutron Stein

unread,
Mar 25, 2016, 8:39:56 AM3/25/16
to ShareJS
Check my update on https://gist.github.com/NeutronStein/f6e7077571a66fa3ddc9 for Ace editor (v1.2.3) and ShareJS (v0.7.40).
Reply all
Reply to author
Forward
0 new messages