Class: InlineTextEditor

Granite.author.editor. InlineTextEditor

The InlineTextEditor is an in-place editor that allows to edit text.


new InlineTextEditor(componentType)

Parameters:
Name Type Description
componentType string

The type of the text component to edit ("text" or "table")

Source:
editors/InlineTextEditor.js

Methods


setUp(editable, targetId)

Starts the text in-place editor on the given Editable

Parameters:
Name Type Description
editable Granite.author.Editable

The editable containing the text to edit

targetId string

The identifier of the target element that contains the text to be edited

Source:
editors/InlineTextEditor.js

tearDown(editable, targetId)

Stops the text in-place editor on the given Editable

Parameters:
Name Type Description
editable Granite.author.Editable

The editable containing the text to edit

targetId string

The identifier of the target element that contains the text to be edited

Source:
editors/InlineTextEditor.js