nytimes / ice

track changes with javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additions are not tracked?

obeattie opened this issue · comments

I feel as if perhaps I'm doing something stupid here, but I can't seem to get trackChanges() to report additions.

I've put together a Fiddle to reproduce this; if you type something in the editor and then cause it to lose focus by clicking anywhere else in the frame, you won't see anything added to the changes list; however, if you delete something and then blur it, you will see deletion events:

http://jsfiddle.net/obeattie/a7zhJ/1/

Hi, @obeattie - Some recommendations: The main editor element should wrap the paragraphs. Also, currentUser is a required configuration - I should probably update the README. I updated your fiddle:

http://jsfiddle.net/a7zhJ/3/

Let me know if you have any other questions.

Ah, that was it. Thanks, I had no idea currentUser was a requirement.