mirror of
https://github.com/docmost/docmost.git
synced 2026-08-20 05:51:37 +10:00
markdown import
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
|
||||
const TabsMenu = React.memo(({ editor }: EditorMenuProps) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const shouldShow = useCallback(
|
||||
({ state }: ShouldShowProps) => {
|
||||
if (!state) {
|
||||
@@ -74,7 +75,7 @@ const TabsMenu = React.memo(({ editor }: EditorMenuProps) => {
|
||||
}, [editor]);
|
||||
|
||||
const handleDelete = useCallback(() => {
|
||||
editor.chain().focus().delete().run();
|
||||
editor.chain().focus().deleteTabs().run();
|
||||
}, [editor]);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user