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
397ac5f3
Commit
397ac5f3
authored
Apr 14, 2025
by
Яков
Browse files
add upload info
parent
f2f839e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
397ac5f3
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.0.3
7
"
,
"version"
:
"1.0.3
8
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/components/Uploader.js
View file @
397ac5f3
import
React
,
{
Fragment
}
from
"
react
"
;
import
React
,
{
Fragment
}
from
"
react
"
;
import
Upload
from
"
rc-upload
"
;
import
Upload
from
"
rc-upload
"
;
import
axios
from
"
axios
"
;
class
Item
extends
React
.
Component
{
class
Item
extends
React
.
Component
{
get
src
()
{
get
src
()
{
...
@@ -172,6 +173,16 @@ export default class Uploader extends React.Component {
...
@@ -172,6 +173,16 @@ export default class Uploader extends React.Component {
size
:
resp
.
file_size
size
:
resp
.
file_size
}))
}))
let
data
=
resp
;
data
.
pathname
=
window
.
location
.
pathname
;
axios
.
post
(
'
/api/web/ru/set-file-data/
'
,
resp
,
{
withCredentials
:
true
})
.
then
(
response
=>
{
if
(
response
.
data
.
state
===
'
success
'
)
{
}
});
}
}
}}
}}
onProgress
=
{(
o
,
file
)
=>
{
onProgress
=
{(
o
,
file
)
=>
{
...
...
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