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
c2aa6805
Commit
c2aa6805
authored
Jan 17, 2024
by
yakoff94
Browse files
fix bug chrome
parent
349b5d41
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QEditor.jsx
View file @
c2aa6805
...
...
@@ -284,7 +284,7 @@ const QEditor = ({
onClick
:
()
=>
{
editor
.
commands
.
setTextAlign
(
'
left
'
);
//так надо, даже не вникай, фикс бага в хроме
//так надо, даже не вникай, фикс бага в хроме
при выравнивании картинки
setTimeout
(()
=>
{
editor
.
commands
.
setTextAlign
(
'
left
'
);
editor
.
chain
().
focus
().
run
()
...
...
@@ -296,7 +296,7 @@ const QEditor = ({
onClick
:
()
=>
{
editor
.
commands
.
setTextAlign
(
'
center
'
);
//так надо, даже не вникай, фикс бага в хроме
//так надо, даже не вникай, фикс бага в хроме
при выравнивании картинки
setTimeout
(()
=>
{
editor
.
commands
.
setTextAlign
(
'
center
'
);
editor
.
chain
().
focus
().
run
()
...
...
@@ -308,7 +308,7 @@ const QEditor = ({
onClick
:
()
=>
{
editor
.
commands
.
setTextAlign
(
'
right
'
);
//так надо, даже не вникай, фикс бага в хроме
//так надо, даже не вникай, фикс бага в хроме
при выравнивании картинки
setTimeout
(()
=>
{
editor
.
commands
.
setTextAlign
(
'
right
'
);
editor
.
chain
().
focus
().
run
()
...
...
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