У меня проблема с интеграцией Aviary Feather. В моем javascript мне нужно использовать Feathers следующим образом:
// Aviary init
var featherProductEditor = new Aviary.Feather({
apiKey: 'myapykey',
apiVersion: 3,
theme: 'dark',
tools: 'all',
appendTo: '',
onSave: function(imageID, newURL) {
// Do things for featherProductEditor
console.log('featherProductEditor');
// Close the editor
featherProductEditor.close();
}
});
// Aviary init
var featherContentBlockEditor = new Aviary.Feather({
apiKey: 'myapykey',
apiVersion: 3,
theme: 'light',
tools: 'all',
appendTo: '',
onSave: function(imageID, newURL) {
// Do things for featherContentBlockEditor
console.log('featherContentBlockEditor');
// Close the editor
featherContentBlockEditor.close();
}
});
Тогда я зову двух Перьев
featherProductEditor.launch({ ....
и
featherContentBlockEditor.launch({ ....
но единственный вызываемый обратный вызов "onSave*:" является вторым из "featherContentBlockEditor" var
Почему? Как я могу это решить?
onError
илиonReady
вместоonSave
? - person T.S.   schedule 12.06.2014x.launch({ ...
? Поскольку этот объект является переопределением конфигурации, было бы неплохо узнать, что там. - person Ingmars   schedule 18.06.2014