vectorsize / substance-text

Substance Text
substance.github.com/text
MIT License
281 stars 26 forks source link

New implementation #23

Open vectorsize opened 12 years ago

vectorsize commented 12 years ago

So, I just pushed what I have so far of the new implementation using contenteditable and rangy for consistent ranges. There are many things not ready so far, like deleting annotations, or generating a delta based on the old and new text etc... However I must leave now, so I decided to push it so that you can start polaying around with it @michael . I also hope is clear enough for working with it. FYI there are still some position bugs regarding offsets and spans and stuff.

michael commented 12 years ago

Awesome work dude. Regarding extracting operations... here's a starting point.

https://github.com/timjb/javascript-operational-transformation/blob/master/lib/codemirror-operation.js

Whoever is first on this. :)

My next actions are implementing the new Composer layout and get comment functionality in.

vectorsize commented 12 years ago

Cool! I'll look into it, for now I'm passing a dummy operation with the event, u can see the logger for more info. Gotta go no! :)

michael commented 12 years ago

Go go go! :) I take it over.

vectorsize commented 12 years ago

Also note, the blur event we mentioned, trigger when clicking outside the gray zone, not only the text part!