I am attempting to implement the ui-tinymce directive within another directive:
angular.module("risevision.widget.common.font-setting", ["ui.tinymce"])
.directive("fontSetting", ["$templateCache", function ($templateCache) {
return {
restrict: "AE",
template: $templateCache.get("_angular/font-setting/font-setting.html"),
transclude: false,
link: function ($scope, element, attrs) {
$scope.tinymceOptions = {
menubar: false,
statusbar: false
};
}
};
}]);
Here is the code for
_angular/font-setting/font-setting.html
:
<div class="row">
<div class="col-md-12>
<textarea ui-tinymce="tinymceOptions" ng-model="tinymceModel"></textarea>
</div>
</div>
The TinyMCE editor appears on the screen, however it seems to be disregarding the configuration options set in $scope.tinymceOptions
. Specifically, the menu bar and status bar are still visible.
Any insights on why this may not be working as expected?
Thank you.