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
451f6f85
Commit
451f6f85
authored
Nov 15, 2024
by
yakoff94
Browse files
update resize-image
parent
2bb63462
Changes
2
Show whitespace changes
Inline
Side-by-side
src/components/ToolBar.js
View file @
451f6f85
...
...
@@ -212,6 +212,23 @@ const ToolBar = ({ editor, toolsLib = [], toolsOptions }) => {
<
/div
>
)
}
else
{
if
(
type
===
'
undo
'
||
type
===
'
redo
'
)
{
let
disabled
=
type
===
'
undo
'
?
!
editor
.
can
().
undo
()
:
!
editor
.
can
().
redo
()
return
(
<
div
key
=
{
idx
}
onClick
=
{(
e
)
=>
{
console
.
log
(
e
.
target
);
item
.
onClick
();
e
.
preventDefault
();
e
.
stopPropagation
()
return
false
;
}}
className
=
{
`qicon q
${
type
}
`
+
(
disabled
?
'
disabled
'
:
''
)}
title
=
{
item
.
title
}
/
>
)
}
return
(
<
div
key
=
{
idx
}
...
...
src/index.scss
View file @
451f6f85
...
...
@@ -380,6 +380,15 @@ body{
border-radius: 4px;
}
&.disabled{
opacity: 0.5;
cursor: not-allowed !important;
&:hover {
opacity: 0.5 !important;
}
}
&:hover{
cursor: pointer;
opacity: 0.8;
...
...
@@ -537,6 +546,15 @@ body{
opacity: 0.5;
}
&.disabled{
opacity: 0.5;
cursor: not-allowed !important;
&:hover {
opacity: 0.5 !important;
}
}
&:hover{
cursor: pointer;
opacity: 0.8;
...
...
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