Browse Source

fix: 增加富文本编辑器字数限制

周玉环 1 day ago
parent
commit
a3582f4485
1 changed files with 2 additions and 1 deletions
  1. 2 1
      xinkeaboard-admin/public/UEditor/ueditor.all.js

+ 2 - 1
xinkeaboard-admin/public/UEditor/ueditor.all.js

@@ -29826,7 +29826,7 @@
                 function setCount(editor, ui) {
                     editor.setOpt({
                         wordCount: true,
-                        maximumWords: 10000,
+                        maximumWords: 1000000,
                         wordCountMsg: editor.options.wordCountMsg || editor.getLang("wordCountMsg"),
                         wordOverFlowMsg: editor.options.wordOverFlowMsg || editor.getLang("wordOverFlowMsg")
                     });
@@ -29839,6 +29839,7 @@
                         return;
                     }
                     var count = editor.getContentLength(true);
+                    console.log(count, 'count')
                     if (count > max) {
                         countDom.innerHTML = errMsg;
                         editor.fireEvent("wordcountoverflow");