API Docs for: 1.0.0
Show:

eZ.AlloyEditorToolbarConfig.Embed Class

styles toolbar configuration for embed. The embed toolbar is supposed to be shown when the user gives the focus to an ezembed widget

Item Index

Methods

getArrowBoxClasses

() String

Returns the arrow box classes for the toolbar. The toolbar is always positioned above its related block and has a special class to move its tail on the left.

Returns:

String:

setPosition

(
  • payload
)
Boolean

Sets the position of the toolbar. It overrides the default styles toolbar positioning to position the toolbar just above its related block element. The related block element is the block indicated in CKEditor's path or the target of the editorEvent event.

Parameters:

  • payload Object
    • editor AlloyEditor.Core
    • selectionData Object
    • editorEvent Object

Returns:

Boolean:

true if the method was able to position the toolbar

test

(
  • payload
)
Boolean

Tests whether the embed toolbar should be visible, it is visible when an ezembed widget gets the focus.

Parameters:

  • payload Object
    • editor AlloyEditor.Core
    • data Object
      • selectionData Object
      • nativeEvent Event

Returns:

Boolean: