Commit f2f75388 by yuananting

fix: 暗提示修改

parent 0e339b5e
...@@ -219,7 +219,9 @@ class QuestionEditor extends Component { ...@@ -219,7 +219,9 @@ class QuestionEditor extends Component {
}; };
editorRoot.config.onblur = (html) => { editorRoot.config.onblur = (html) => {
const conLen = html.replace(/<(?!img|input).*?>/g, "").length; html = html.replace(/<(?!img|input).*?>/g, "");
html = html.replace(/\s+/g, "");
const conLen = html.length;
this.setState({ this.setState({
focusFlag: false, focusFlag: false,
visibleMediaBox: false, visibleMediaBox: false,
......
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