froala / meteor-froala

Meteor bindings for the Froala WYSIWYG HTML Editor.
https://froala.com/wysiwyg-editor
MIT License
68 stars 19 forks source link

Where's best practice for including the Activation code? #9

Closed adamgins closed 9 years ago

adamgins commented 9 years ago

I with this package where do i do???? just add into any client file???

  $.Editable.DEFAULTS.key = 'ACTIVATION_KEY';
stefanneculai commented 9 years ago

You can pass it as an option when you initialize the editor $(your_selector).editable({key: 'ACTIVATION_KEY'}).

adamgins commented 9 years ago

@stefanneculai thanks for quick reply Mmm.. so I don't really initialize it as I am using https://github.com/froala/froala-reactive

I see this error:

image

I only see this error in my Cordova app when running on my local dev machine (which would use a different domain)... I don't see it when I using the Cordova app on my live server.

@rjsmith not sure if you have any input?

stefanneculai commented 9 years ago

https://github.com/froala/froala-reactive#options-and-events explains how to pass options. You'd have to do like this:

{{> froalaReactive ... language=getActivationKey...}}
Template.myTemplate.helpers({
  getActivationKey: function () {
    return 'ACTIVATION_KEY';
  }
})

The Unlicensed Froala Editor message is set not to appear on localhost, that's why you don't see the message locally.

adamgins commented 9 years ago

Thanks. So I have purchased a Froala license but I need to run it on my development servers that have a different domain.

For example, my development server may be running my dev environment/IDEO on nitrous.io or if I am testing a mobile app on an actual iOS device with excode I need to run meteor with the --mobile-server settings for the specific IP address. To test this with Google OAuth I need to have an actual IP - eg somename.noip.com will point to an internal address like 192.168.0.something.

So I really need to test Froala both on desktop browsers accessing these servers or on mobile devices. Is there a way to do that, pls?

stefanneculai commented 9 years ago

You'd have to generate a different key for the IP you're using on the mobile device and use that key when you're testing there. I have just emailed you more details on the email you used to purchase the license.

jackszd commented 7 years ago

how to add the one domain license key in Jquery program.