Search results

BlockDragEventArgs API in JavaScript (ES5) Blockeditor API control

Properties

cancel

boolean

Specifies whether the drag action should be canceled.

content

BlockModel | null

Specifies the block model that is being dragged.

dropIndex

number

Specifies the index where the block is intended to be dropped.

event

Event

Specifies the native event (e.g., mouse or drag event) that triggered the block drag action.

fromIndex

number

Specifies the index of the block from which the drag started.

target

HTMLElement | null

Specifies the target HTML element where the block is being dragged from.