getSettings()
Parameters:
None
Usage:
//get editor settings
var settings = sdk.getSettings();
Returns:
Editor settings configured by content admin for the custom field editor. For example, in the case of the sample location selection editor, if the setting is:
"settings": [{
"id": "init-long",
"name": "Initial longitude",
"type": "text"
}, {
"id": "init-lat",
"name": "Initial latitude",
"type": "text"
}, {
"id": "zoom-level",
"name": "Zoom level",
"type": "text"
}]
and if the content admin entered an initial longitude of -73.96 and an initial latitude
of 40.78, with a zoom level of 18, then
sdk.getSettings()
will
return:{zoom-level: "18", init-long: "-73.96", init-lat: "40.78"}