0
I am creating a kind of forum on my client’s site. In this forum, to ask questions and comments, obviously use Textareas.
However, I am using the Nicedit class to transform my textareas with option of font, size, insertion of images and links etc. Only the page has two textareas with ids "post" and comment". And it’s only working the textarea "post". I had to put the code like this:
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function () {
var textareas = document.getElementsByName("postar");
for(var i=0;i<textareas.length;i++)
{
var myNicEditor = new nicEditor();
myNicEditor.panelInstance(textareas[i]);
}
//var textareas2 = document.getElementsByName("comentar");
//for(var i=0;i<textareas2.length;i++)
// {
// var myNicEditor = new nicEditor();
// myNicEditor.panelInstance(textareas2[i]);
// }
});
</script>
So my comment textareas are normal. What could I do to enable comments textareas normally with Nicedit?