我正在开发一个基于网络的 ERP,我需要一些帮助。
作为文本编辑器,我选择 CKEditor,效果很好,可以做我需要的一切。嗯……不完全是……
我添加了一个插件名称“wordcount”,用于计算单词或字符并设置限制。
问题是我在一页上有更多的 CKeditor,我需要为每个页面设置不同的限制。如您所见,插件为两个编辑器设置了相同的限制:
参数通过 config.js 传递:
config.wordcount = {
// Whether or not you want to show the Paragraphs Count
showParagraphs: false,
// Whether or not you want to show the Word Count
showWordCount: false,
// Whether or not you want to show the Char Count
showCharCount: true,
// Whether or not you want to count Spaces as Chars
countSpacesAsChars: true,
// Whether or not to include Html chars in the Char Count
countHTML: false,
// Maximum allowed Word Count, -1 is default for unlimited
maxWordCount: 400,
// Maximum allowed Char Count, -1 is default for unlimited
maxCharCount: 400};
你知道有什么方法可以做到这一点吗?也可以使用另一个插件或“手动”。
提前致谢!