API Docs for: 1.0.0
Show:

eZ.AlloyEditorButton.ButtonEmbedImage Class

ButtonEmbedImage is a mixing providing the necessary code to trigger UDW and use the content choosen by the user to correctly set the properties of an embed element that represents an image.

Item Index

Methods

_getImageField

(
  • contentType
  • content
)
Object protected

Returns the image field object of the given content.

Parameters:

Returns:

Object:

_isImage

(
  • contentStruct
)
Boolean protected

Checks whether the current selection can be considered as an image. This is the case if the content type has an ezimage field definition and if the corresponding field is not empty. This method is meant to be used as a isSelectable function implementation for the UDW.

Parameters:

  • contentStruct Object

    the UDW potential selection

Returns:

Boolean: