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
451f6f85
Commit
451f6f85
authored
Nov 15, 2024
by
yakoff94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update resize-image
parent
2bb63462
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
ToolBar.js
src/components/ToolBar.js
+17
-0
index.scss
src/index.scss
+18
-0
No files found.
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