Skip to content

Commit

Permalink
docs: add the selection attribute to handleDrop (#332)
Browse files Browse the repository at this point in the history
将 selection 属性添加至默认编辑器的 handleDrop 扩展中。相关改动查看 halo-dev/halo#5570

/kind documentation

```release-note
None
```
  • Loading branch information
LIlGG committed Mar 27, 2024
1 parent 64b30fa commit ce581bc
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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; // 是否允许拖拽事件向内部传播,
}
Expand Down

0 comments on commit ce581bc

Please sign in to comment.