Search results

BlockAddedEventArgs API in React Blockeditor API component

This event is triggered when a new block is added to the editor.

Properties

block

BlockModel

Specifies the block model that was added.

index

number

Specifies the index where the block was added.

isInteracted

boolean

Indicates whether the user directly interacted with the block (e.g., adding it manually). If false, the block was added programmatically.

isPasted

boolean

Indicates if the block was added via paste action.

parentID

string

Specifies the ID of the parent block (if any).