문제

I am adding tinymce inside a partial using ng-include. This is not working. When I move the same syntax to the view file, it is loading properly. Any suggestion, how can I add tinymce inside a partial?

<!-- Not working inside, a HTML partial -->
<textarea ui-tinymce ng-model="data.describe"></textarea>
도움이 되었습니까?

해결책

You need to call an instance of tinyMCE after ng-include is loaded. Use $includeContentLoaded like:

$scope.$on('$includeContentLoaded', function(event) {
    // call init function of tinyMCE
}});

If you use a ui-tinymce directive, you need to edit this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top