To customize each textarea
element, you must assign it a unique id and reference that id in the configuration settings:
tinymce.init({
selector: "textarea#editor1",
menubar:false,
statusbar: false,
...
});
<textarea id="editor1"></textarea>
tinymce.init({
selector: "textarea#editor2",
// standard toolbar for editor 2
...
});
<textarea id="editor2"></textarea>
// Repeat this pattern for additional textareas...
By specifying the textarea's id in the configuration, you specify which textarea the settings apply to. Check out an advanced example on the tinyMCE site for more details:
selector: "textarea#elm1",
Selects only the textarea with ID elm1
UPDATE
It is indeed possible to handle multiple textarea ids simultaneously by setting each one as unique like so:
<script type="text/javascript">
tinymce.init({
selector: "textarea#common1,textarea#common2",
theme: "modern",
height: 100,
menubar:false,
statusbar: false
});
tinymce.init({
selector: "textarea#comment_toolbox",
theme: "modern",
height: 100,
toolbar: false
});
</script>
</head>
<body>
<div width="100%" height="100%">
<textarea id="common1"></textarea>
<br/>
<textarea id="comment_toolbox"></textarea>
<br/>
<textarea id="common2"></textarea>
<br/>
</div>
</body>
Your website will display correctly with these arrangements.