Kazi Shahadat Hossain
Kazi Shahadat Hossain

Reputation: 91

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>

Upvotes: 0

Views: 485

Answers (2)

user6492976
user6492976

Reputation:

Use like this

tinymce.init({
        selector:'textarea',
        plugins: "code image"
    });

Upvotes: 1

ketchupisred
ketchupisred

Reputation: 651

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>

Upvotes: 1

Related Questions