diff --git a/ng-ckeditor.js b/ng-ckeditor.js index 599ae6b..7feca18 100644 --- a/ng-ckeditor.js +++ b/ng-ckeditor.js @@ -77,7 +77,7 @@ height: '400px', width: '100%' }; - options = angular.extend(options, scope[attrs.ckeditor]); + options = angular.extend(options, scope.$eval(attrs.ckeditor)); var instance = (isTextarea) ? CKEDITOR.replace(element[0], options) : CKEDITOR.inline(element[0], options), configLoaderDef = $q.defer(); @@ -152,4 +152,4 @@ }]); return app; -})); \ No newline at end of file +}));