Explorar o código

feature 1001713

增加鼠标右键复制粘贴功能
Kevin Jiang %!s(int64=2) %!d(string=hai) anos
pai
achega
40c113832a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/views/report/components/ContentEditor.vue

+ 3 - 1
src/views/report/components/ContentEditor.vue

@@ -15,6 +15,7 @@ const toolbar = [
   'undo redo',
   'blocks',
   'bold italic',
+  'copy paste',
   'alignleft aligncenter alignright alignjustify',
   // 'indent outdent',
   'table',
@@ -26,7 +27,8 @@ const editInit = {
   language: 'zh_CN',
   skin: 'small',
   icons: 'small',
-  plugins: 'lists link image table code help wordcount fullscreen',
+  plugins: 'lists link paste selectall image table code help wordcount fullscreen',
+  contextmenu: 'copy paste selectall',
   toolbar: toolbar.join(' | '),
   menubar: false,
   branding: false,