Selaa lähdekoodia

feat: modify ueditor maxinumwords 1000000

王亚超 1 vuosi sitten
vanhempi
commit
9d3bedf970

+ 2 - 1
server/common/widgets/editor/ueditor/static/ueditor.all.js

@@ -28761,7 +28761,7 @@ UE.ui = baidu.editor.ui = {};
             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")
                 });
@@ -28770,6 +28770,7 @@ UE.ui = baidu.editor.ui = {};
                     msg = opt.wordCountMsg ,
                     errMsg = opt.wordOverFlowMsg,
                     countDom = ui.getDom('wordcount');
+                console.log('最大字数' + max)
                 if (!opt.wordCount) {
                     return;
                 }

+ 1 - 1
server/common/widgets/editor/ueditor/static/ueditor.config.js

@@ -251,7 +251,7 @@
 
         //wordCount
         //,wordCount:true          //是否开启字数统计
-        //,maximumWords:10000       //允许的最大字符数
+        ,maximumWords:1000000       //允许的最大字符数
         //字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示
         //,wordCountMsg:''   //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符
         //超出字数限制提示  留空支持多语言自动切换,否则按此配置显示