{"action":"closed","issue":{"url":"https://api.github.com/repos/sachinchoolur/angular-trix/issues/7","repository_url":"https://api.github.com/repos/sachinchoolur/angular-trix","labels_url":"https://api.github.com/repos/sachinchoolur/angular-trix/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/sachinchoolur/angular-trix/issues/7/comments","events_url":"https://api.github.com/repos/sachinchoolur/angular-trix/issues/7/events","html_url":"https://github.com/sachinchoolur/angular-trix/issues/7","id":144132836,"number":7,"title":"How do I get the contents of the editor?","user":{"login":"thegreatmichael","id":351751,"avatar_url":"https://avatars.githubusercontent.com/u/351751?v=3","gravatar_id":"","url":"https://api.github.com/users/thegreatmichael","html_url":"https://github.com/thegreatmichael","followers_url":"https://api.github.com/users/thegreatmichael/followers","following_url":"https://api.github.com/users/thegreatmichael/following{/other_user}","gists_url":"https://api.github.com/users/thegreatmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/thegreatmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thegreatmichael/subscriptions","organizations_url":"https://api.github.com/users/thegreatmichael/orgs","repos_url":"https://api.github.com/users/thegreatmichael/repos","events_url":"https://api.github.com/users/thegreatmichael/events{/privacy}","received_events_url":"https://api.github.com/users/thegreatmichael/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-29T02:00:53Z","updated_at":"2016-03-29T02:17:52Z","closed_at":"2016-03-29T02:17:52Z","body":"I want to make it so that if the user presses the enter key without shift, it will not add a newline, but will instead call a submit kind of function on my controller. I have previously been using textangular, but they don't have events or really anything to make this easy for me, and there i was encountering a race condition with reading the content. to test angular-trix, i made a small fork of the plunkr, see: http://plnkr.co/edit/2qC9DZEI8eOxNW74pS7J?p=preview \r\n(the plunkr is such that it will log `$scope.trix` after 5 seconds) \r\nso to test: i have the console open on the side and refresh the plunkr. immediately start typing real words. while watching for the console. you will see it log at 5 seconds, and in my tests, this had only the beginning contents of the model. How would i get the current typed text?"}}