eZ.AlloyEditorButton.ButtonEmbedDiscoverContent Class
ButtonEmbedDiscoverContent is a mixing providing the necessary code to trigger UDW and use the content choosen by the user to correctly set the properties of the ezembed widget.
Item Index
Properties
- editor
- label deprecated
- udwContentDiscoveredMethod
- udwIsSelectableMethod
- udwLoadContent
- udwTitle deprecated
Events
Methods
_chooseContent
()
protected
Triggers the UDW to choose the content to embed.
_fireUpdatedEmbed
-
selection
Fires the updatedEmbed
event. This should be called right after the
embed element is updated.
Parameters:
-
selection
Objectthe UDW selection
_setContentInfo
-
contentInfo
Sets the href of the ezembed widget based on the given content info
Parameters:
-
contentInfo
eZ.ContentInfo
Properties
editor
Object
The editor instance where the component is being used.
label
String
deprecated
The label of the button
udwContentDiscoveredMethod
String
The method to use as the contentDiscoveredHandler in the UDW
udwIsSelectableMethod
String
The method to use as the isSelectable function in the UDW
udwLoadContent
Boolean
The loadContent flag to pass to the UDW
udwTitle
String
deprecated
The title of the UDW. This property is deprecated, please implement a _getUDWTitle method instead.
Events
updatedEmbed
Fired when the embed widget is updated in the editor. This event can be listened to render the embed widget that has been updated.
Event Payload:
-
embedStruct
Objectthe UDW selection