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
Methods
_getImageField
(
Object
protected
-
contentType
-
content
Returns the image field object of the given content.
Parameters:
-
contentType
eZ.ContentType -
content
eZ.Content
Returns:
Object:
_isImage
(
Boolean
protected
-
contentStruct
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
Objectthe UDW potential selection
Returns:
Boolean: