Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lib
react-ag-qeditor
Commits
d973bd2b
Commit
d973bd2b
authored
Jun 27, 2025
by
Яков
Browse files
test drag and drop
parent
b018c90c
Changes
2
Show whitespace changes
Inline
Side-by-side
src/QEditor.jsx
View file @
d973bd2b
...
...
@@ -511,9 +511,9 @@ const QEditor = ({
Audio
,
Superscript
,
Subscript
,
//
DragAndDrop.configure({
//
linkUpload: uploadOptions.url
//
}),
DragAndDrop
.
configure
({
linkUpload
:
uploadOptions
.
url
}),
],
content
:
value
,
onUpdate
:
({
editor
})
=>
onChange
(
editor
.
getHTML
()),
...
...
src/extensions/DragAndDrop.js
View file @
d973bd2b
...
...
@@ -21,6 +21,10 @@ const DragAndDrop = Extension.create({
props
:
{
handleDOMEvents
:
{
async
paste
(
view
,
event
)
{
console
.
log
(
event
.
clipboardData
);
console
.
log
(
event
.
originalEvent
.
clipboardData
);
let
items
=
(
event
.
clipboardData
||
event
.
originalEvent
.
clipboardData
).
items
;
for
(
let
i
=
0
;
i
<
items
.
length
;
i
++
){
...
...
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