Skip to content

Instantly share code, notes, and snippets.

Last active December 18, 2015 11:39
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Light Theme
<!-- Load Feather code -->
<script type="text/javascript" src=""></script>
<!-- Instantiate Feather -->
<script type='text/javascript'>
var featherEditor = new Aviary.Feather({
apiKey: 'YOUR_KEY',
apiVersion: 3,
tools: 'all',
appendTo: '',
theme: 'light',
onSave: function(imageID, newURL) {
var img = document.getElementById(imageID);
img.src = newURL;
onError: function(errorObj) {
function launchEditor(id, src) {
image: id,
url: src
return false;
<div id='injection_site'></div>
<img id='image1' src=''/>
<!-- Add an edit button, passing the HTML id of the image and the public URL of the image -->
<p><input type='image' src='' value='Edit photo' onclick="return launchEditor('image1', '');" /></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment