Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
650717ca
Commit
650717ca
authored
Jun 27, 2022
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: test
parent
3db08fda
Pipeline
#53981
failed with stages
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
index.js
packages/base-components/RichText/src/index.js
+1
-10
No files found.
packages/base-components/RichText/src/index.js
View file @
650717ca
...
...
@@ -92,7 +92,6 @@ const RichText = forwardRef((props, ref) => {
}
editor
.
menus
.
extend
(
menuKey
,
InsertABCMenu
);
}
editor
.
config
=
Object
.
assign
(
{},
editor
.
config
,
...
...
@@ -156,15 +155,7 @@ const RichText = forwardRef((props, ref) => {
}
});
editor
.
txt
.
eventHooks
.
imgClickEvents
.
push
((
e
)
=>
{
// 图片预览
// 已弃用
// let img = e?.selector?.getAttribute('src') || '';
// if (img) {
// setImgPreviewSrc(img);
// setImgVisible(true);
// }
});
editor
.
txt
.
eventHooks
.
imgClickEvents
.
push
((
e
)
=>
{});
// 粘贴图片上传
editor
.
txt
.
eventHooks
.
pasteEvents
.
push
((
e
)
=>
{
const
file
=
e
?.
clipboardData
?.
items
[
0
]?.
getAsFile
()
||
null
;
...
...
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