Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
175
rated 0 times [  178] [ 3]  / answers: 1 / hits: 14858  / 10 Years ago, sun, may 25, 2014, 12:00:00

I have tried this simple code for 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



<!DOCTYPE html>
<html>
<head>
<script src=http://tinymce.cachefly.net/4.0/tinymce.min.js></script>

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


</head>
<body>
<textarea></textarea>
</body>
</html>


Here code plugin is working but image plugin not working.If I remove code plugin than image plugin working.How can I apply both plugin?


More From » tinymce

 Answers
1

You are specifying the plugins property twice. It should only be there once and then multiple plugins should be specified in that property. According to the documentation you need to be using a comma or space separated string, or an array of strings. Try this below:



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


https://www.tinymce.com/docs/configure/integration-and-setup/#plugins


[#45052] Friday, May 23, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tayaw

Total Points: 749
Total Questions: 88
Total Answers: 86

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
tayaw questions
;