{"action":"created","issue":{"url":"https://api.github.com/repos/mzabriskie/react-tinymce/issues/10","labels_url":"https://api.github.com/repos/mzabriskie/react-tinymce/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/react-tinymce/issues/10/comments","events_url":"https://api.github.com/repos/mzabriskie/react-tinymce/issues/10/events","html_url":"https://github.com/mzabriskie/react-tinymce/issues/10","id":108395885,"number":10,"title":"onChange not fired often enough","user":{"login":"dave-handy","id":12730880,"avatar_url":"https://avatars.githubusercontent.com/u/12730880?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-handy","html_url":"https://github.com/dave-handy","followers_url":"https://api.github.com/users/dave-handy/followers","following_url":"https://api.github.com/users/dave-handy/following{/other_user}","gists_url":"https://api.github.com/users/dave-handy/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-handy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-handy/subscriptions","organizations_url":"https://api.github.com/users/dave-handy/orgs","repos_url":"https://api.github.com/users/dave-handy/repos","events_url":"https://api.github.com/users/dave-handy/events{/privacy}","received_events_url":"https://api.github.com/users/dave-handy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-25T19:47:05Z","updated_at":"2015-10-22T13:12:58Z","closed_at":null,"body":"It seems that onChange is only fired when you change the cursor location in the document, not whenever the document content changes (as you type). I expected any changes in the text to receive a callback."},"comment":{"url":"https://api.github.com/repos/mzabriskie/react-tinymce/issues/comments/150217964","html_url":"https://github.com/mzabriskie/react-tinymce/issues/10#issuecomment-150217964","issue_url":"https://api.github.com/repos/mzabriskie/react-tinymce/issues/10","id":150217964,"user":{"login":"dave-handy","id":12730880,"avatar_url":"https://avatars.githubusercontent.com/u/12730880?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-handy","html_url":"https://github.com/dave-handy","followers_url":"https://api.github.com/users/dave-handy/followers","following_url":"https://api.github.com/users/dave-handy/following{/other_user}","gists_url":"https://api.github.com/users/dave-handy/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-handy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-handy/subscriptions","organizations_url":"https://api.github.com/users/dave-handy/orgs","repos_url":"https://api.github.com/users/dave-handy/repos","events_url":"https://api.github.com/users/dave-handy/events{/privacy}","received_events_url":"https://api.github.com/users/dave-handy/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T13:12:58Z","updated_at":"2015-10-22T13:12:58Z","body":"Now that I'm thinking through this further, you don't need onChange if you have:\r\n* Compute dirty state based on current content, last saved content\r\n* Timer to periodically check dirty state and save the document\r\n* Synchronous ajax call to save the document when they navigate away\r\n\r\nThat's actually a better approach than I had planned when I thought onChange would work ;)\r\n\r\nMaybe just a note in the README.md to warn about onChange?"}}