Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-ag-qeditor
Overview
Overview
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
lib
react-ag-qeditor
Commits
a849f72d
Commit
a849f72d
authored
Nov 03, 2023
by
devTvenks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fixed images in editor
parent
ee1929b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
QEditor.jsx
src/QEditor.jsx
+1
-2
Uploader.js
src/components/Uploader.js
+1
-0
No files found.
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