{"action":"opened","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1030","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1030/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1030/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/1030","id":128114703,"number":1030,"title":"Conditions for firing 'contentChanged' event should be checked when editor looses focus","user":{"login":"mwtorkowski","id":6072390,"avatar_url":"https://avatars.githubusercontent.com/u/6072390?v=3","gravatar_id":"","url":"https://api.github.com/users/mwtorkowski","html_url":"https://github.com/mwtorkowski","followers_url":"https://api.github.com/users/mwtorkowski/followers","following_url":"https://api.github.com/users/mwtorkowski/following{/other_user}","gists_url":"https://api.github.com/users/mwtorkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mwtorkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwtorkowski/subscriptions","organizations_url":"https://api.github.com/users/mwtorkowski/orgs","repos_url":"https://api.github.com/users/mwtorkowski/repos","events_url":"https://api.github.com/users/mwtorkowski/events{/privacy}","received_events_url":"https://api.github.com/users/mwtorkowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T09:16:33Z","updated_at":"2016-01-22T09:16:33Z","closed_at":null,"body":"There's timeout in place to make sure 'contentChanged' isn't fired more than every 500ms (it's fixed value, should by typingTimer option btw), that's fine I guess. Problem is, that even when editor loses focus we still need to wait 500ms for editor to broadcast that content has changed.\r\n\r\nFor now I'm circumventing this issue by listening for blur event and firing undo.saveStep\r\n\r\n    $('#editor').on('froalaEditor.blur', function () {\r\n        element.froalaEditor('undo.saveStep');\r\n    });"}}