Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different uploadUrl with multiple instances on the same page #472

Open
bigclumsyoaf opened this issue May 25, 2016 · 4 comments
Open

Different uploadUrl with multiple instances on the same page #472

bigclumsyoaf opened this issue May 25, 2016 · 4 comments

Comments

@bigclumsyoaf
Copy link

Hi, we use multiple Sir Trevor instances on the same page. I would like each instance to have it's own uploadUrl. Currently we use:

SirTrevor.setDefaults( {
  uploadUrl:"/upload-url"
});

But this just applies the uploadUrl for all instances. Is it possible to specify the uploadUrl in the initialisation?

new SirTrevor.Editor({
  uploadUrl:"/upload-url-2"
});
@raffij
Copy link
Contributor

raffij commented May 26, 2016

@bigclumsyoaf should be. Does that not work?

@bigclumsyoaf
Copy link
Author

I removed the setDefaults block, and just added it to the initialisation, but it was uploading to the default location. I will do some more tests to see if I can track down what's happening.

I should also probably upgrade to a more recent version of 0.6. What's best branch to be up-to-date on a relatively stable 0.6?

Thanks

Daryl.

@raffij
Copy link
Contributor

raffij commented May 26, 2016

0.6 is stable. Haven't had time to complete docs and make it perfect. So that's why it's not final.

Also if it's loading to the default place that's probably a bug.

@raffij
Copy link
Contributor

raffij commented Jul 1, 2016

I see this is still an issue in 0.6. We'll look at the best way of solving this in the near future.

@raffij raffij added this to the v.0.7.0 milestone Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants