質問

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