Browse Source

富文本编辑器去除快速插入功能

jwyu 1 year ago
parent
commit
77856be111
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/hooks/useFroalaEditor.js

+ 2 - 1
src/hooks/useFroalaEditor.js

@@ -42,7 +42,8 @@ export function useInitFroalaEditor() {
 		videoUploadURL: import.meta.env.VITE_APP_API_URL + '/report/uploadImg', //上传url
 		fileUploadURL: import.meta.env.VITE_APP_API_URL + '/report/uploadImg', //上传url 更多上传介绍 请访问https://www.froala.com/wysiwyg-editor/docs/options
 		imageDefaultWidth: false,
-		quickInsertButtons: ['image', 'ul', 'ol'], //快速插入项
+		quickInsertEnabled: false,
+		// quickInsertButtons: ['image', 'ul', 'ol'], //快速插入项
 		toolbarVisibleWithoutSelection: true, //是否开启 不选中模式
 		toolbarSticky: false, //操作栏是否自动吸顶
 		saveInterval: 0,