API Docs for: 1.0.0
Show:

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.

Methods

_chooseContent

() protected

Triggers the UDW to choose the content to embed.

_fireUpdatedEmbed

(
  • selection
)
protected

Fires the updatedEmbed event. This should be called right after the embed element is updated.

Parameters:

  • selection Object

    the UDW selection

_setContentInfo

(
  • contentInfo
)
protected

Sets the href of the ezembed widget based on the given content info

Parameters:

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 Object

    the UDW selection