Skip to content

Commit 58b76e6

Browse files
committed
修复:富文本编辑器配置,默认不显示AI助手
1 parent f32524e commit 58b76e6

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

asset/common/editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset/vendor/ueditor/ueditor.config.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/asset/src/common/editor.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ var Editor = {
223223
retainOnlyLabelPasted: true,
224224
autoHeightEnabled: true,
225225
focus: false,
226+
toolbarShows: {
227+
ai: false,
228+
},
229+
shortcutMenuShows: {
230+
ai: false,
231+
}
226232
}, EditorUploadConfig, editorOption, getEditorExtraConfig());
227233

228234
var ueditor = UE.getEditor(id, editorOpt);

resources/asset/src/vendor/ueditor/ueditor.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485

486486
//快捷菜单
487487
, shortcutMenu: [
488-
"ai",
488+
// "ai", // AI智能
489489
// "fontfamily", // 字体
490490
// "fontsize", // 字号
491491
"bold", // 加粗

0 commit comments

Comments
 (0)