froala / vue-froala-wysiwyg

Vue component for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
633 stars 86 forks source link

How to add License Key #28

Closed joancc closed 6 years ago

joancc commented 6 years ago

What is the best way to pass the license key to the Vue Froala Editor. I've tried the following:

Note I'm still in development mode in localhost, not sure if adding the license at this stage will work.

Thanks!

1) $('froala-editor').froalaEditor({ key: 'XXXXXXXXXX' })

2) data() { return { config: { events: { 'froalaEditor.initialized': function() { console.log('initialized') $('froala-editor').froalaEditor({ key: 'XXXXXXXXXX', }) }, }, key: 'XXXXXXXXXX', }, model: 'Edit Your Content Here!', key: 'XXXXXXXXXX', } },

stefanneculai commented 6 years ago

It should be passed as an option: https://github.com/froala/vue-froala-wysiwyg#options.