Commit 349b5d41 by yakoff94

fix bug chrome

parent eed38480
......@@ -282,22 +282,37 @@ const QEditor = ({
alignLeft: {
title: 'По левому краю',
onClick: () => {
editor.commands.setTextAlign('left')
editor.chain().focus()
editor.commands.setTextAlign('left');
//так надо, даже не вникай, фикс бага в хроме
setTimeout(()=>{
editor.commands.setTextAlign('left');
editor.chain().focus().run()
},150)
}
},
alignCenter: {
title: 'По центру',
onClick: () => {
editor.commands.setTextAlign('center');
editor.chain().focus();
//так надо, даже не вникай, фикс бага в хроме
setTimeout(()=>{
editor.commands.setTextAlign('center');
editor.chain().focus().run()
},150)
}
},
alignRight: {
title: 'По правому краю',
onClick: () => {
editor.commands.setTextAlign('right')
editor.chain().focus()
editor.commands.setTextAlign('right');
//так надо, даже не вникай, фикс бага в хроме
setTimeout(()=>{
editor.commands.setTextAlign('right');
editor.chain().focus().run()
},150)
}
},
insertTable: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment