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
5c2effc1
Commit
5c2effc1
authored
Jun 27, 2025
by
Яков
Browse files
fix drag and drop
parent
c25a5de8
Changes
2
Hide whitespace changes
Inline
Side-by-side
example/src/App.js
View file @
5c2effc1
...
...
@@ -12,7 +12,7 @@ const App = () => {
// console.log(value);
}}
uploadOptions
=
{{
url
:
'
/upload
'
,
url
:
'
https://cdn.atmaguru.online/upload/?sid=atmacompany&md5=0cETbV4BquHkqAdG9cK9MA&expires=1742192970
'
,
errorMessage
:
'
Загрузка временно невозможна
'
}}
style
=
{{
...
...
src/extensions/DragAndDrop.js
View file @
5c2effc1
...
...
@@ -65,11 +65,12 @@ export const DragAndDrop = Extension.create({
if
(
extension
.
options
.
uploadHandler
)
{
fileUrl
=
await
extension
.
options
.
uploadHandler
(
file
);
}
else
{
const
formData
=
new
FormData
();
formData
.
append
(
'
file
'
,
file
);
const
response
=
await
axios
.
post
(
extension
.
options
.
uploadUrl
,
global
.
uploadUrl
,
formData
,
{
headers
:
{
...
...
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