Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 86b1226b
authored
Dec 29, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
表情格式修改
1 parent
6f1b3c41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
src/views/task/addTask/index.vue
src/views/task/addTask/index.vue
View file @
86b1226
...
@@ -1575,10 +1575,19 @@ export default {
...
@@ -1575,10 +1575,19 @@ export default {
}
}
// 处理软文表情太大
// 处理软文表情太大
if
(
itm
.
textContent
)
{
if
(
itm
.
textContent
)
{
let
regErr
=
/<img
\b
/gi
// let regErr = /<img\b/gi
// itm.textContent = itm.textContent.replace(
// regErr,
// `<img style="width: 18px;height 18px"`
// )
var
regex0
=
new
RegExp
(
'(i?)(\<img)([^\>]+\>)'
,
'gmi'
)
itm
.
textContent
=
itm
.
textContent
.
replace
(
/style="
[^
"
]
+"/gi
,
''
)
.
replace
(
/style='
[^
'
]
+'/gi
,
''
)
itm
.
textContent
=
itm
.
textContent
.
replace
(
itm
.
textContent
=
itm
.
textContent
.
replace
(
reg
Err
,
reg
ex0
,
`<img style="width: 18px;height 18px"`
'$2 style="width: 18px;height: 18px" $3'
)
)
}
}
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment