Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an event that will be fired when an inline image is edited by user, and the src attribute of the image is about to be changed

Hierarchy

Index

Properties

Optional eventDataCache

eventDataCache: {}

An optional event cache. This will be consumed by event cache API to store some expensive calculation result. So that for the same event across plugins, the result doesn't need to be calculated again

Type declaration

  • [key: string]: any

eventType

eventType: EditImage

Type of this event

Readonly image

image: HTMLImageElement

The image element that is being changed

newSrc

newSrc: string

New src of the changed image, in DataUri format. Plugin can modify this string so that the modified one will be set to the image element

Readonly originalSrc

originalSrc: string

Original src of the image before all editing in current editor session.

Readonly previousSrc

previousSrc: string

Src of the image before current batch of editing Plugin can check this value to know which image is not used after the change.

Generated using TypeDoc