angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 370 forks source link

minified plugins #173

Closed ddNils closed 9 years ago

ddNils commented 9 years ago

in my downloaded tinymce the plugins are minified (the script files are now pluginname.min.js).

now ui-tinymce cannot load plugins :(

could you by chance provide a flag in config? Or change the lazy loading function to search for .min as well?

deeg commented 9 years ago

Not sure this library is the one dealing with which plugins to use.

If loading unminified TinyMCE, by default it will look for uniminified plugins. Simmilarly if loading minified TinyMCE it will look for minified plugins.

According to their documentation, to load plugins of a different type, or a different location, link them directly after the tinymce file.

http://www.tinymce.com/wiki.php/Tutorials:Creating_a_plugin

You can also have the plugin in any location you want by loading the plugin.js/plugin.min.js files directrly after the tinymce.js/tinymce.min.js.

Example of loading the plugin from another url

<script src="/tinymce/js/tinymce.min.js"></script>
<script src="/scripts/my.tinymce.plugin.js"></script>
<script>
tinymce.init({..});
</script>```

This is working for me.

alacret commented 7 years ago

This issue can't be closed this isn't a solution to the minified environment problem