我正在使用 angular ui tinymce 扩展。我想知道如何设置可以在常规 JavaScript 中执行的以下设置。
tinymce.init({
selector: "textarea",
height: 250,
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
]
});
不知道如何使用设置
$scope.tinymceOptions =
{
setup: function (ed) {
ed.onInit.add(function(ed) {
//SOME INITIALIZING CODE HERE
});
}
任何有关设置 tinymceOptions 的帮助将不胜感激。