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
a849f72d
Commit
a849f72d
authored
Nov 03, 2023
by
devTvenks
Browse files
fix: fixed images in editor
parent
ee1929b9
Changes
2
Show whitespace changes
Inline
Side-by-side
src/QEditor.jsx
View file @
a849f72d
...
...
@@ -960,12 +960,11 @@ const QEditor = ({
return
false
}
}
try
{
switch
(
innerModalType
)
{
case
'
image
'
:
uploadedPaths
.
map
((
file
,
i
)
=>
{
editor
.
chain
().
focus
().
setImage
({
src
:
file
.
path
})
editor
.
chain
().
focus
().
setImage
({
src
:
file
.
path
})
.
run
();
})
break
case
'
video
'
:
...
...
src/components/Uploader.js
View file @
a849f72d
...
...
@@ -116,6 +116,7 @@ export default class Uploader extends React.Component {
className
=
{
'
atma-editor-uploader-uitems-elem
'
+
(
this
.
modalType
===
'
file
'
?
'
atma-editor-uploader-file
'
:
''
)
}
style
=
{{
backgroundImage
:
`url(
${
this
.
state
.
files
[
uid
].
path
}
)`
}}
data
-
url
=
{
this
.
state
.
files
[
uid
].
path
}
key
=
{
`key_
${
i
}
`
}
>
<
div
className
=
{
'
atma-editor-uploader-uitems-del
'
}
title
=
{
'
Удалить
'
}
onClick
=
{()
=>
this
.
abortUpload
({
uid
})
}
/
>
{
...
...
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