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
349b5d41
Commit
349b5d41
authored
Jan 17, 2024
by
yakoff94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug chrome
parent
eed38480
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
QEditor.jsx
src/QEditor.jsx
+20
-5
No files found.
src/QEditor.jsx
View file @
349b5d41
...
@@ -282,22 +282,37 @@ const QEditor = ({
...
@@ -282,22 +282,37 @@ const QEditor = ({
alignLeft
:
{
alignLeft
:
{
title
:
'По левому краю'
,
title
:
'По левому краю'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
editor
.
commands
.
setTextAlign
(
'left'
)
editor
.
commands
.
setTextAlign
(
'left'
);
editor
.
chain
().
focus
()
//так надо, даже не вникай, фикс бага в хроме
setTimeout
(()
=>
{
editor
.
commands
.
setTextAlign
(
'left'
);
editor
.
chain
().
focus
().
run
()
},
150
)
}
}
},
},
alignCenter
:
{
alignCenter
:
{
title
:
'По центру'
,
title
:
'По центру'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
editor
.
commands
.
setTextAlign
(
'center'
);
editor
.
commands
.
setTextAlign
(
'center'
);
editor
.
chain
().
focus
();
//так надо, даже не вникай, фикс бага в хроме
setTimeout
(()
=>
{
editor
.
commands
.
setTextAlign
(
'center'
);
editor
.
chain
().
focus
().
run
()
},
150
)
}
}
},
},
alignRight
:
{
alignRight
:
{
title
:
'По правому краю'
,
title
:
'По правому краю'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
editor
.
commands
.
setTextAlign
(
'right'
)
editor
.
commands
.
setTextAlign
(
'right'
);
editor
.
chain
().
focus
()
//так надо, даже не вникай, фикс бага в хроме
setTimeout
(()
=>
{
editor
.
commands
.
setTextAlign
(
'right'
);
editor
.
chain
().
focus
().
run
()
},
150
)
}
}
},
},
insertTable
:
{
insertTable
:
{
...
...
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