Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

How implementation works #11

Open
devAdvc opened this issue Dec 6, 2018 · 0 comments
Open

How implementation works #11

devAdvc opened this issue Dec 6, 2018 · 0 comments

Comments

@devAdvc
Copy link

devAdvc commented Dec 6, 2018

Hi, i work with VueJS and i don't know if I can implements you package with my app.

Here's what I did:

<img id="test" src="path/to/myimg">
...
import Aviary from 'ember-aviary'
...
mounted () {
	var featherEditor = new Aviary.Feather({
		apiKey: 'your-key-here',
		apiVersion: 3,
		theme: 'dark',
		tools: 'all',
		appendTo: '',
		onSave (imageID, newURL) {
			var img = document.getElementById(imageID)
			img.src = newURL
		},
		onError (errorObj) {
			alert(errorObj.message)
		}
	})

	featherEditor.launch({
	  image: 'test'
	})
}

But of course it doesn't work.

I didn't understand your documentation, could you explain how I can do that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant