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
b7730eb0
Commit
b7730eb0
authored
Dec 02, 2022
by
Рамис
Browse files
bug fix bubble menu and modal hide
parent
0e8e928b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/QEditor.jsx
View file @
b7730eb0
...
@@ -873,30 +873,19 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions = {url: "", er
...
@@ -873,30 +873,19 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions = {url: "", er
break
break
case
'
file
'
:
case
'
file
'
:
console
.
log
(
uploadedPaths
,
'
ejkwnferiugnuierwnguirne
'
);
uploadedPaths
.
map
((
file
,
i
)
=>
{
uploadedPaths
.
map
((
file
,
i
)
=>
{
console
.
log
(
file
);
editor
.
chain
().
focus
()
editor
.
chain
().
focus
()
// .extendMarkRange('link').setLink({
// href: file.path,
// target: '_blank',
// download: true,
// 'data-size': file.size
// })
.
insertContent
(
`<a href="
${
file
.
path
}
" target="_blank" download="true" data-size="
${
file
.
size
}
">
${
file
.
name
}
</a>`
).
run
();
.
insertContent
(
`<a href="
${
file
.
path
}
" target="_blank" download="true" data-size="
${
file
.
size
}
">
${
file
.
name
}
</a>`
).
run
();
});
});
break
break
}
}
setModalIsOpen
(
false
);
clearBlobUrl
();
clearBlobUrl
();
setUploaderUid
(
`uid
${
new
Date
()}
`
);
setUploaderUid
(
`uid
${
new
Date
()}
`
);
setEmbedContent
(
''
);
setEmbedContent
(
''
);
setUploadedPaths
([]);
setUploadedPaths
([]);
setModalTitle
(
''
);
setModalTitle
(
''
);
setModalIsOpen
(
false
);
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
)
console
.
log
(
err
)
}
}
...
...
src/index.scss
View file @
b7730eb0
...
@@ -383,6 +383,10 @@ body{
...
@@ -383,6 +383,10 @@ body{
opacity: 0.8;
opacity: 0.8;
}
}
}
}
&:hover{
z-index: 100000;
}
}
}
...
@@ -536,7 +540,7 @@ body{
...
@@ -536,7 +540,7 @@ body{
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
text-align: center;
text-align: center;
z-index: 1000;
z-index: 1000
01
;
background-color: rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0.2);
&-box{
&-box{
...
...
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