1. When i post a comment with Tiny, a new text box appears. So, i have a normal text box + tiny editor box.
This happens because of $(parent).find('textarea').show(); in resetCommentForm() function at applications/vanila/js/dicsussion.js
this will not solve the problem ived done several changes in vanilla\applications\vanilla\js\discussion.js : 115: //gdn.processTargets(json.Targets); -commented out 203: //gdn.processTargets(json.Targets); -commented out 272: just after: $(parent).find('span.TinyProgress').remove();
$('textarea[name="Comment/Body"]', container).tinymce({ theme : "simple" /*remember to change this to what theme youre using*/ }).hide(); window.setTimeout(function (){$('textarea[name="Comment/Body"]', container).hide()}, 100);
and then vanilla\applications\vanilla\views\post\comment.php just before line 25 $this->Form->SetFormValue('Body', $this->Comment->Body); } /*from here*/ echo $this->Form->Open(array('ID' => 'Form_Comment'.($this->Comment->CommentID ? "_{$this->Comment->CommentID}" : ''))); echo $this->Form->Errors(); echo $this->Form->TextBox('Body', array('MultiLine' => TRUE, 'ID' => 'Form_Body'.($this->Comment->CommentID ? "_{$this->Comment->CommentID}" : ''))); echo "
\n";
and thats it. now you have a nice&beautiful tinymce up&working.
I have read this forum thread and tested this plugin. My conclusion is that this plugin is not really usable without massive patching of the Vanilla forum sources.
Comments
line 43 in default.php should be
$mode = "advanced"; // simple/full/advanced
The word medium is incorrect
ived done several changes in vanilla\applications\vanilla\js\discussion.js :
115: //gdn.processTargets(json.Targets); -commented out
203: //gdn.processTargets(json.Targets); -commented out
272: just after: $(parent).find('span.TinyProgress').remove();
$('textarea[name="Comment/Body"]', container).tinymce({
theme : "simple" /*remember to change this to what theme youre using*/
}).hide();
window.setTimeout(function (){$('textarea[name="Comment/Body"]', container).hide()}, 100);
and then
vanilla\applications\vanilla\views\post\comment.php
just before line 25
$this->Form->SetFormValue('Body', $this->Comment->Body);
} /*from here*/
echo $this->Form->Open(array('ID' => 'Form_Comment'.($this->Comment->CommentID ? "_{$this->Comment->CommentID}" : '')));
echo $this->Form->Errors();
echo $this->Form->TextBox('Body', array('MultiLine' => TRUE, 'ID' => 'Form_Body'.($this->Comment->CommentID ? "_{$this->Comment->CommentID}" : '')));
echo "
and thats it. now you have a nice&beautiful tinymce up&working.
There is another TinyMCE plugin now:
http://vanillaforums.org/addon/tinymce-plugin