Options
All
  • Public
  • Public/Protected
  • All
Menu

Data of EntityOperationEvent

Hierarchy

Index

Properties

Optional contentForShadowEntity

contentForShadowEntity: DocumentFragment
deprecated

entity

entity: Entity

The entity that editor is operating on

operation

Operation to this entity

Optional rawEvent

rawEvent: Event

Optional raw event. Need to do null check before use its value

Optional shouldPersist

shouldPersist: boolean

For EntityOperation.NewEntity, plugin can set this property to true then the entity will be persisted. A persisted entity won't be touched during undo/redo, unless it does not exist after undo/redo. For other operation types, this value will be ignored.

Optional state

state: string

For EntityOperation.UpdateEntityState, we use this object to pass the new entity state to plugin. For other operation types, it is not used.

Generated using TypeDoc