swaraj
1
Hi,
Can we apply both simple and advanced tiny mce on a form with multiple text areas!
i need to apply advanced on one text box while i want to apply simple on other.
The calling function takes all textboxes globally
<!-- TinyMCE –>
<script type=“text/javascript” src=“tiny_mce.js”></script>
<script type=“text/javascript”>
tinyMCE.init({
mode : “textareas”,
theme : “advanced”
});
</script>
<!-- /TinyMCE –>
swaraj
2
hey,
i got the solution through documentation:
use the editor_selector tag like
<script type=“text/javascript”>
tinyMCE.init({
mode : “textareas”,
theme : “advanced”,
editor_selector : “userinputbox1”
});
tinyMCE.init({
mode : "textareas",
theme : "simple",
editor_selector : "userinputbox2"
});
</script>
<textarea name=“et_html” class=“userinputbox1” cols=“80” rows=“12” id=“et_body” >{$data.et_html}</textarea>
<textarea name=“et_body” class=“userinputbox2” cols=“80” rows=“12” id=“et_body” >{$data.et_body}</textarea>