Show:

The ButtonLinkTargetEdit class provides functionality for changing the target of a link in the document.

Methods

render

() Object

Lifecycle. Renders the UI of the button.

Returns:

Object:

The content which should be rendered.

shouldComponentUpdate

() Boolean

Lifecycle. Invoked before rendering when new props or state are being received. This method is not called for the initial render or when forceUpdate is used.

Returns:

Boolean:

Returns false when the transition to the new props and state will not require a component update.

Properties

allowedTargets

Array

List of the allowed items for the target attribute. Every allowed target is an object with a label attribute that will be shown in the dropdown and a value attribute that will get set as the link target attribute.

editor

Object

The editor instance where the component is being used.

key

String static

The name which will be used as an alias of the button in the configuration.

Default: linkTargetEdit

selectedTarget

String

Label of the current target value.