我的代码上有这个编辑器:
<textarea ui-tinymce="vm.viewModel.editorOptions" ng-model="vm.model.EmailTemplate"></textarea>
配置:
vm.viewModel.editorModel.editorOptions = {
selector: 'textarea',
height: 400,
theme: 'modern',
plugins: [
'advlist autolink lists link image preview hr anchor',
'textcolor colorpicker textpattern'
],
toolbar1: "undo redo | fontselect fontsizeselect | bold italic underline strikethrough | forecolor backcolor",
toolbar2: "alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | link unlink image | hr",
image_advtab: true,
menubar: false,
statusbar: false,
}
现在我的问题是UI没有正确显示添加图像按钮。见截图
我在这里缺少什么?我正在添加如下脚本:
"~/Scripts/tinymce/tinymce.js",
"~/Scripts/ui-tinymce.js"