refactor: clean text enter

This commit is contained in:
lawvs
2022-08-17 19:05:59 +08:00
parent f269990f9b
commit 1d3a285681
2 changed files with 23 additions and 19 deletions
@@ -1,6 +1,6 @@
import {
type BlockEditor,
supportChildren,
type BlockEditor,
} from '@toeverything/components/editor-core';
import { Protocol } from '@toeverything/datasource/db-service';
import { AsyncBlock } from '@toeverything/framework/virgo';
@@ -81,7 +81,7 @@ const indentBlock = async (block: TodoAsyncBlock) => {
* └─ [ ]
* ```
*/
const dedentBlock = async (editor: BlockEditor, block: AsyncBlock) => {
export const dedentBlock = async (editor: BlockEditor, block: AsyncBlock) => {
if (editor.getRootBlockId() === block.id) {
return false;
}