Namespace: editor

Granite.author. editor

Namespace used for the different in-place editors (IPE for short).

Source:
editors/editor.js

Classes

HybridEditor
ImageEditor
InlineTextEditor

Members


<static> registry :Object

Registry where all the available in-place editors are stored

Type:
  • Object
Source:
editors/editor.js

Methods


<static> endEditor(name, editable)

Stops in-place editing on the passed Editable

Parameters:
Name Type Description
name string

The name identifier of the in-place editor to end

editable Granite.author.Editable

The Editable that is in-place edited

Source:
editors/editor.js

<static> register(name, editor)

Registers a given in-place editor

Parameters:
Name Type Description
name string

The name identifier of the in-place editor to register

editor InPlaceEditor

The in-place editor object

Source:
editors/editor.js

<static> startEditor(name, editable)

Starts an in-place editor (from its name) on the passed Editable

Parameters:
Name Type Description
name string

The name identifier of the in-place editor to start

editable Granite.author.Editable

The Editable to be in-place edited

Source:
editors/editor.js