Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
d975046f
Commit
d975046f
authored
Jul 12, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:课程简介字数统计修复
parent
2c7c3cf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/modules/course-manage/components/GraphicsEditor.jsx
+2
-2
No files found.
src/modules/course-manage/components/GraphicsEditor.jsx
View file @
d975046f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-07-05 10:47:19
* @Date: 2021-07-05 10:47:19
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-07-12 1
6:24:33
* @LastEditTime: 2021-07-12 1
7:05:59
* @Description: 描述一下咯
* @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...
@@ -154,7 +154,7 @@ class GraphicsEditor extends React.Component {
...
@@ -154,7 +154,7 @@ class GraphicsEditor extends React.Component {
const
videoCount
=
((
html
||
''
).
match
(
/<iframe/g
)
||
[]).
length
;
const
videoCount
=
((
html
||
''
).
match
(
/<iframe/g
)
||
[]).
length
;
const
imageCount
=
((
html
||
''
).
match
(
/<img/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
},
()
=>
{
this
.
setState
({
textLength
},
()
=>
{
if
(
textLength
>
maxLimit
)
{
if
(
textLength
>
maxLimit
)
{
message
.
warning
(
`内容过长,不能超过
${
maxLimit
}
字`
);
message
.
warning
(
`内容过长,不能超过
${
maxLimit
}
字`
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment