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」変数の 2 番目のものです。
なんで?どうすればこれを解決できますか?