Content Field Editor SDK Object
The initEditor
is the callback function that gets an instance of the SDK
object that provides the following methods:
getField() | Gets a field object rendered by the custom editor. |
getFields() | Gets a list of all fields in the content item in which the custom editor is being used. Returns an array of field objects. |
getLocale() | Gets the current language of the user interface. |
getSetting(setting) | Gets the editor setting value for the given setting. |
getSettings() | Gets the editor settings. |
registerDisable(callback) | Registers a callback function for disabling and enabling the custom field editor. |
setValidation(callback) | Registers a validation callback function for validating the custom field editor. |
resize(size) | Resizes the iframe where the custom editor resides to the given size object containing width and height in pixels. |
openContentPicker() | Opens the content picker dialog. |
getDirection() | Gets the current direction of the user interface. |