Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
105
rated 0 times [  109] [ 4]  / answers: 1 / hits: 45848  / 14 Years ago, fri, march 4, 2011, 12:00:00

I am using tinymce, I have multiple text areas on my page. Is it possible to apply for only one textarea,



1 text area is for description
validation is like below




var text = tinyMCE.get('txtdesc').getContent();


But i have more 3 more text areas in my page so tineMCE should not apply for all these text areas



How can i apply only for one text area




// this is my tinyMCE code
tinyMCE.init({
mode : textareas,
theme : advanced
});

// /tinyMCE

More From » tinymce

 Answers
13

For the textarea assign a class= to textarea property, this will support for you



<script type=text/javascript>
tinyMCE.init({
//mode : textareas,
mode : specific_textareas,
editor_selector : myTextEditor,
theme : simple
});
</script>

<textarea id=txtdesc name=txtdesc class=myTextEditor rows=6 cols=96 ></textarea>

[#93442] Thursday, March 3, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kayle

Total Points: 267
Total Questions: 77
Total Answers: 99

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
;