mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-13 22:32:26 +03:00
fix editor exit button appears on room switch (#2207)
This commit is contained in:
parent
09d85d6c31
commit
2ed3f877c3
1 changed files with 3 additions and 1 deletions
|
@ -257,7 +257,9 @@ export function Toolbar() {
|
||||||
const modKey = isMacOS() ? KeySymbol.Command : 'Ctrl';
|
const modKey = isMacOS() ? KeySymbol.Command : 'Ctrl';
|
||||||
const disableInline = isBlockActive(editor, BlockType.CodeBlock);
|
const disableInline = isBlockActive(editor, BlockType.CodeBlock);
|
||||||
|
|
||||||
const canEscape = isAnyMarkActive(editor) || !isBlockActive(editor, BlockType.Paragraph);
|
const canEscape = isBlockActive(editor, BlockType.Paragraph)
|
||||||
|
? isAnyMarkActive(editor)
|
||||||
|
: ReactEditor.isFocused(editor);
|
||||||
const [isMarkdown, setIsMarkdown] = useSetting(settingsAtom, 'isMarkdown');
|
const [isMarkdown, setIsMarkdown] = useSetting(settingsAtom, 'isMarkdown');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue