Class: Extension

sync.ext. Extension


new Extension()

An extensions specific to a document type.

Methods


editorCreated(editor)

Callback used when the editor is created.
Parameters:
Name Type Description
editor sync.api.Editor The editor object.

filterActions(actionsMap, editingSupport)

Filter the actions available for the current editing support.
Parameters:
Name Type Description
actionsMap Map.<String, sync.actions.AbstractAction> The map between actions id and action.
editingSupport sync.api.EditingSupport The editing support.

getEnhancers()

Returns a mapping from form-control names to constructors of form-control enhancers. The name of the form control is the fully qualified name of the Java renderer.
Returns:
map from form-control names to enhancer constructors.
Type
Object.<string, function(HTMLElement, sync.api.Editor)>