Skip to content

Instantly share code, notes, and snippets.

@afuchs
Created January 21, 2014 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save afuchs/8543815 to your computer and use it in GitHub Desktop.
Save afuchs/8543815 to your computer and use it in GitHub Desktop.
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