Commit d975046f by yuananting

fix:课程简介字数统计修复

parent 2c7c3cf3
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-07-05 10:47:19
* @LastEditors: yuananting
* @LastEditTime: 2021-07-12 16:24:33
* @LastEditTime: 2021-07-12 17:05:59
* @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
......@@ -154,7 +154,7 @@ class GraphicsEditor extends React.Component {
const videoCount = ((html || '').match(/<iframe/g) || []).length;
const imageCount = ((html || '').match(/<img/g) || []).length;
const textLength = this.editorInt.txt.text().length + str1.length + videoCount + imageCount;
const textLength = str1.length + videoCount + imageCount;
this.setState({ textLength }, () => {
if (textLength > maxLimit) {
message.warning(`内容过长,不能超过${maxLimit}字`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment