docs: add the selection attribute to handleDrop (#332)

将 selection 属性添加至默认编辑器的 handleDrop 扩展中。相关改动查看 https://github.com/halo-dev/halo/pull/5570

/kind documentation

```release-note
None
```
This commit is contained in:
Takagi
2024-03-27 12:24:08 +08:00
committed by GitHub
parent 64b30fae7d
commit ce581bcc6d

View File

@@ -408,12 +408,14 @@ export interface DraggableItem {
slice,
insertPos,
node,
selection,
}: {
view: EditorView;
event: DragEvent;
slice: Slice;
insertPos: number;
node: Node;
selection: Selection;
}) => boolean | void;
allowPropagationDownward?: boolean; // 是否允许拖拽事件向内部传播,
}