Kazi Shahadat Hossain Kazi Shahadat Hossain - 5 months ago 50
jQuery Question

How to integrate multiple plugins in tinymce?

I have tried this simple code to try tinyMCE. It is working fine. Here the problem is when I am trying to add multiple plugin it is not working. Here I have used tinymce CDN. Here is the code

<script>tinymce.init({selector:'textarea',
plugins: "code",
plugins: "image"
});</script>
<body><textarea></textarea></body>

Answer

You're using plugins twice. I suggest you do it this way:

<script>
    tinymce.init({
        selector:'textarea',
        plugins: "code image"
    });
</script>
<body><textarea></textarea></body>