tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
320 stars 93 forks source link

self hosted doesn't work with premium plugins #247

Closed solomon23 closed 3 years ago

solomon23 commented 3 years ago

I have self hosted working but it tries to load the premium plugins from local instead of the cloud. if in include the premium plugins .js and load it up first - that gives me a script error.

The angular wrapper should take care of loading the cloud hosted premiums if the api key is present I imagine. It doesn't seem like there is a way to use self hosted and premium at this time

exalate-issue-sync[bot] commented 3 years ago

Ref: INT-2551

tiny-james commented 3 years ago

When you are self hosting the editor you need to give the editor the location to load any plugins that you are not loading relative to tinymce.min.js. This is done by using the external_plugins setting.

<editor [init]="{external_plugins: { 'testing': 'http://www.testing.com/plugin.min.js',  'maths': 'http://www.maths.com/plugin.min.js' }}"></editor>

If you wish to get the plugins on cloud then they will be relative to the normal cloud URL that you can get from your account page.

For example the link plugin is at:

https://cdn.tiny.cloud/1/no-api-key/tinymce/5/plugins/link/plugin.min.js
solomon23 commented 3 years ago

Thank you - that fixed me up