Вопрос

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