Author API Initialization
allow_save
Controls whether the save button will be enabled, even when the Activity has restricted Tags.
You would want to use this to allow the save button to be clicked in order to catch the save:activity
event to implement your own custom save logic.
This property is only applicable when restricted_tags.either
or restricted_tags.all
are provided.
Note If the event is not prevented (e.g. event.preventDefault()
), the save operation will fail due to the restricted Tags.
Examples
var initializationOptions = {
"config": {
"activity_edit": {
"save": {
"restricted_tags": {
"allow_save": true,
"either" : [
{ "type": "TYPE1", "name": "NAME1" },
{ "type": "TYPE1", "name": "NAME2" }
]
}
}
}
}
};
Values
Attribute path config.activity_edit.save.restricted_tags.allow_save
Default false
Type boolean