Entering new content when in code view doesn't register changes
This is occurring in the latest versions of both Chrome and Firefox. I'm am using the version 0.5.0 of angular-summernote, and Angular 1.3.x.
I'm having a problem where Summernote does not appear to register changes to the model if the code view is used first. I am wrapping Summernote in another directive with the model as $scope.data.summernoteText.
HTML
In the directive, I am watching the model for changes so I can pass those through.
What I've found is that if I init a new editor, and then go right to the code view (to either paste or type in an HTML document), it doesn't register any changes to the model. If I first go into the normal HTML view and add something, then go into the code view, it works fine. After some fiddling around, it appears that under any circumstance, if the HTML view is empty, and then I switch to the code view, it will not register changes. I was able to get around 90% of the usecases by forcing a space into the model (and therefore into the HTML view), and then when I go to code view, changes register just fine. However, this doesn't solve the problem if a user happens to empty the HTML view, and then go into the code view.
In our case, it is a very common use case for our users to go right to code view and past in HTML.