Created
January 21, 2014 17:01
-
-
Save afuchs/8543815 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var editor = new Aviary.Feather({ | |
// config | |
onSaveButtonClicked: function() { | |
// 1. start custom spinner and disable editor | |
editor.getImageData(function(data) { // `data` contains a base64 encoding of the image | |
// 2. POST `data` to your own server | |
// 3. stop custom spinner and enable or close the editor | |
}); | |
return false; // prevents editor from following defautl save behavior | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment