Class: ImageEditor

Granite.author.editor. ImageEditor

The ImageEditor is an in-place editor that allows to edit images.


new ImageEditor()

Source:
editors/ImageEditor.js

Methods


setUp(editable, dropTargetId)

Starts the image in-place editor on the given Editable

Parameters:
Name Type Description
editable Granite.author.Editable

The editable containing the image to edit

dropTargetId string

The identifier of the dropTarget that contains the image to be edited

Source:
editors/ImageEditor.js

tearDown(editable)

Stops the image in-place editor on the given Editable

Parameters:
Name Type Description
editable Granite.author.Editable

The editable containing the image to edit

Source:
editors/ImageEditor.js