diff --git a/angular-redactor.js b/angular-redactor.js index a847851..e5166c7 100644 --- a/angular-redactor.js +++ b/angular-redactor.js @@ -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; }); }