I have a problem integrating the Aviary Pen. In my javascript, I need to use Feathers as follows:
var featherProductEditor = new Aviary.Feather({
apiKey: 'myapykey',
apiVersion: 3,
theme: 'dark',
tools: 'all',
appendTo: '',
onSave: function(imageID, newURL) {
console.log('featherProductEditor');
featherProductEditor.close();
}
});
var featherContentBlockEditor = new Aviary.Feather({
apiKey: 'myapykey',
apiVersion: 3,
theme: 'light',
tools: 'all',
appendTo: '',
onSave: function(imageID, newURL) {
console.log('featherContentBlockEditor');
featherContentBlockEditor.close();
}
});
Then i call two feather
featherProductEditor.launch({ ....
and
featherContentBlockEditor.launch({ ....
but the only onSave * callback called : is the second option featherContentBlockEditor "var
Why? How can i solve this?
source
share