Ver Fonte

管理后台tinyMCE编辑器显示menubar

fogwind há 1 semana atrás
pai
commit
5f78236ad3

+ 3 - 3
packages/Webkul/Admin/src/Resources/views/components/tinymce/index.blade.php

@@ -6,7 +6,7 @@
         there is an issue with relative paths in the plugins. I intend to address this task at the end.
         there is an issue with relative paths in the plugins. I intend to address this task at the end.
     -->
     -->
     <script
     <script
-        src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/6.6.2/tinymce.min.js"
+        src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/6.8.6/tinymce.min.js"
         crossorigin="anonymous"
         crossorigin="anonymous"
         referrerpolicy="no-referrer"
         referrerpolicy="no-referrer"
     ></script>
     ></script>
@@ -275,7 +275,7 @@
 
 
                             let config = {  
                             let config = {  
                                 relative_urls: false,
                                 relative_urls: false,
-                                menubar: false,
+                                // menubar: false,
                                 remove_script_host: false,
                                 remove_script_host: false,
                                 document_base_url: '{{ asset('/') }}',
                                 document_base_url: '{{ asset('/') }}',
                                 uploadRoute: '{{ route('admin.tinymce.upload') }}',
                                 uploadRoute: '{{ route('admin.tinymce.upload') }}',
@@ -388,7 +388,7 @@
 
 
                     tinyMCEHelper.initTinyMCE({
                     tinyMCEHelper.initTinyMCE({
                         selector: this.selector,
                         selector: this.selector,
-                        plugins: 'image media wordcount save fullscreen code table lists link',
+                        plugins: 'image media wordcount save code table lists link',
                         toolbar1: 'formatselect | blocks | bold italic strikethrough forecolor backcolor image alignleft aligncenter alignright alignjustify | link hr |numlist bullist outdent indent  | removeformat | code | table | mediabutton aibutton',
                         toolbar1: 'formatselect | blocks | bold italic strikethrough forecolor backcolor image alignleft aligncenter alignright alignjustify | link hr |numlist bullist outdent indent  | removeformat | code | table | mediabutton aibutton',
                         image_advtab: true,
                         image_advtab: true,
                         directionality : "{{ core()->getCurrentLocale()->direction }}",
                         directionality : "{{ core()->getCurrentLocale()->direction }}",