Skip to content

Commit

Permalink
Merge pull request #28 from gather/master
Browse files Browse the repository at this point in the history
Use `code.set` rather than `insert.set`.
  • Loading branch information
Tyler Garlick committed Dec 4, 2014
2 parents 8e5405d + da40ee2 commit 9f15a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular-redactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
ngModel.$render = function() {
if(angular.isDefined(editor)) {
$timeout(function() {
$_element.redactor('insert.set', ngModel.$viewValue || '');
$_element.redactor('code.set', ngModel.$viewValue || '');
scope.redactorLoaded = true;
});
}
Expand Down

0 comments on commit 9f15a81

Please sign in to comment.