|
@@ -40,6 +40,7 @@ export default {
|
|
|
required: false,
|
|
|
default() {
|
|
|
return []
|
|
|
+ // return ['removeformat undo redo | bullist numlist | outdent indent | forecolor | fullscreen code', 'bold italic blockquote | h2 p media link | alignleft aligncenter alignright | fontsizeselect | fontselect'] // 修改后 第一步
|
|
|
}
|
|
|
},
|
|
|
menubar: {
|
|
@@ -123,7 +124,7 @@ export default {
|
|
|
height: this.height,
|
|
|
body_class: 'panel-body ',
|
|
|
object_resizing: false,
|
|
|
- toolbar: this.toolbar.length > 0 ? this.toolbar : toolbar,
|
|
|
+ // toolbar: this.toolbar.length > 0 ? this.toolbar : toolbar,
|
|
|
menubar: this.menubar,
|
|
|
plugins: plugins,
|
|
|
end_container_on_empty_block: true,
|
|
@@ -134,6 +135,8 @@ export default {
|
|
|
advlist_number_styles: 'default',
|
|
|
imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
|
|
|
default_link_target: '_blank',
|
|
|
+ toolbar: ['searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample fontsizeselect fontselect', 'hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen'],
|
|
|
+ fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt',
|
|
|
link_title: false,
|
|
|
nonbreaking_force_tab: true, // inserting nonbreaking space need Nonbreaking Space Plugin
|
|
|
init_instance_callback: editor => {
|