Class: HybridEditor

Granite.author.editor. HybridEditor

The HybridEditor is a kind of "super" in-place editor that could be composed of different in-place editors.


new HybridEditor(editors)

Parameters:
Name Type Description
editors Array.<InPlaceEditor>

List of the different in-place editors that will compose the HybridEditor

Source:
editors/HybridEditor.js

Methods


setUp(editable)

Starts the hybrid in-place editor on the given Editable.
The Editable's corresponding component should be configured to support multiple childEditors (via editConfig.inplaceEditingConfig.childEditors)

Parameters:
Name Type Description
editable Granite.author.Editable

The editable to edit

Source:
editors/HybridEditor.js

tearDown(editable)

Stops the hybrid in-place editor on the given Editable

Parameters:
Name Type Description
editable Granite.author.Editable

The editable to edit

Source:
editors/HybridEditor.js