Good day. I want to use editor in comments instead of textarea.
I tried to do something - place this code:
<?php $editor =& JFactory::getEditor(); echo $editor->display('commentText', $editor->commentText, '100%', '400', '170', '20');?><?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>
instead of
<textarea rows="20" cols="10" class="inputbox" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>') this.value='';" name="commentText" id="commentText"><?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?></textarea>
Editor is appeared. But i can't use it. Only after second click to button "send" the comment is sending. But bbcodes don't work. But i want to use them in comments.
Can anyone help to me?