How to add tinymce library to Confluence plugin?

I add this into atlassian-plugin.xml:

<web-resource name="TinyMCE resources" key="tinymce-resources">
        <resource type="download" name="plugins/" location="libs/tinymce/plugins"/>
        <resource type="download" name="langs/" location="libs/tinymce/langs"/>
        <resource type="download" name="skins/" location="libs/tinymce/skins"/>
        <resource type="download" name="themes/" location="libs/tinymce/themes"/>

        <resource type="download" name="jquery.tinymce.min.js" location="libs/tinymce/jquery.tinymce.min.js"/>
        <resource type="download" name="tinymce.min.js" location="libs/tinymce/tinymce.min.js"/>

    </web-resource>

It works fine in development mode. But when I deploy it to production Confluence version 6.1, it cannot work.

There are a lot of js files in libs/tinymce/plugins, libs/tinymce/themes. Does it a problem ?

Thanks and Best Regards

What do you mean with “it cannot work”?

Can you please provide us with the errors you are getting so we might be able to help you out?

1 Like