Search results

BlockMetadata API in JavaScript (ES5) Blockeditor API control

Represents metadata associated with a block operation in the block editor component.

Properties

action

string

Specifies the type of action performed on the block. Possible values:

  • add: A block was added.
  • delete: A block was deleted.
  • update: A block was updated.
  • selectionUpdate: The block selection was updated.
  • undoredo: An undo or redo operation was performed.
  • cut: The block was cut.
  • paste: A block was pasted.
  • userAdded: A user was added to the block.
  • userRemoved: A user was removed from the block.
  • dragAndDrop: The block was moved using drag and drop.

Defaults to

block

BlockModel

Specifies the block model related to the action. This represents the block that was added, removed, updated, or modified.

Defaults to {}

user

UserModel

Specifies the user who performed the action. This represents the user associated with the block modification.

Defaults to {}