API Docs for: 1.0.0
Show:

eZ.RichTextResolveImage Class

The Richtext resolve image processor

Constructor

Methods

_appendContentNode

(
  • embedNode
)
Node private

Appends the content node to the embed node.

Parameters:

Returns:

Node:

the content node

_appendLoadingNode

(
  • embedNode
)
protected

Appends the embed content element when in loading mode.

Parameters:

_buildEmbedMapNodes

(
  • embeds
)
Object private

Builds a map between the content id and the embed nodes embedding it.

Parameters:

Returns:

Object:

_getEmbedContent

(
  • embedNode
)
Node protected

Returns the node representing the embed content.

Parameters:

Returns:

Node:

_getEmbedContentId

(
  • embedNode
)
String private

Returns the content id of an embed node

Parameters:

Returns:

String:

_getEmbedList

(
  • view
)
Y.NodeList protected

Returns a node list of nodes representing an embed that are not yet been rendered.

Parameters:

Returns:

Y.NodeList:

_getEmbedVariation

(
  • embedNode
)
String protected

Returns the image variation for the embedNode.

Parameters:

Returns:

String:

_loadEmbeds

(
  • mapNode
  • view
)
protected

Search for the content that are embed

Parameters:

_loadVariation

(
  • view
  • content
  • imageField
  • embedNode
)
private

Fires the loadImageVariation event to load the image variation to display in the image embed.

Parameters:

_renderEmbed

(
  • mapNode
  • error
  • results
)
protected

Renders the embed with the search results

Parameters:

  • mapNode Object
  • error Error | False
  • results Array

_renderEmbedContentNode

(
  • content
  • embedNode
)
protected

Renders the content into the embedNode as an embed.

Parameters:

_renderImage

(
  • embedNode
  • content
  • variation
)
protected

Renders the image inside the embed node.

Parameters:

_renderLoadingEmbed

(
  • node
)
protected

Renders the given embed node as loading

Parameters:

_renderLoadingEmbedElements

(
  • mapNode
)
protected

Renders the embeds in the mapNode as loading

Parameters:

  • mapNode Object

_renderLoadingEmbeds

(
  • embeds
)
deprecated protected

Renders the embed as in loading mode.

Parameters:

_renderNotLoadedEmbed

(
  • mapNode
)
protected

Renders the embed node referenced in mapNode as not loaded.

Parameters:

  • mapNode Object

_renderSelectedContent

(
  • view
  • embedStruct
  • mapNodes
)
protected

Renders the embed from the embedStruct provided in the event parameters that triggered the process.

Parameters:

_setLoading

(
  • embedNode
)
Node protected

Adds the loading class on the embed node

Parameters:

Returns:

Node:

the embedNode

_setNotLoaded

(
  • embedNode
)
protected

Sets the embed node in the not loaded state

Parameters:

_unsetLoading

(
  • embedNode
)
Node protected

Unsets the loading mode by remove the loading class.

Parameters:

Returns:

Node:

embedNode

process

(
  • view
  • [event]
)

Resolves the embed by search for the corresponding content by content id.

Parameters:

Properties

_notLoadedMessage

String protected

Contains the message to display when the embed Content item could not be loaded.