mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-22 10:58:56 +00:00
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:
@@ -408,12 +408,14 @@ export interface DraggableItem {
|
|||||||
slice,
|
slice,
|
||||||
insertPos,
|
insertPos,
|
||||||
node,
|
node,
|
||||||
|
selection,
|
||||||
}: {
|
}: {
|
||||||
view: EditorView;
|
view: EditorView;
|
||||||
event: DragEvent;
|
event: DragEvent;
|
||||||
slice: Slice;
|
slice: Slice;
|
||||||
insertPos: number;
|
insertPos: number;
|
||||||
node: Node;
|
node: Node;
|
||||||
|
selection: Selection;
|
||||||
}) => boolean | void;
|
}) => boolean | void;
|
||||||
allowPropagationDownward?: boolean; // 是否允许拖拽事件向内部传播,
|
allowPropagationDownward?: boolean; // 是否允许拖拽事件向内部传播,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user