angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 371 forks source link

Update Angular version dependency to 1.3.x #243

Closed RopoMen closed 8 years ago

RopoMen commented 8 years ago

Hi,

I have AngularJS 1.2.12 in use and I did install latest ui-tinymce and I'm getting error "tinymce.min.js:1 Uncaught TypeError: q.$setUntouched is not a function"

$setUntouched is not available in AngularJS 1.2.x series, it is introduced in AngularJS 1.3.0

RopoMen commented 8 years ago

Option 2, this would still be compatible with other AngularJS versions.

if(angular.isFunction(ngModel.$setUntouched) {
ngModel.$setUntouched();
}
deeg commented 8 years ago

Going to require 1.4.x or greater now.