I've got the joie theme installed and v2.03 and this isn't working. I get duplicate instances in my "plugins" options and cannot enable/disable correctly and it doesn't show on the discussion pages.
i have only one Q. it seems that now that ived configured and its working perfectly, tinyMCE is kinda the second instance of how you can add a comment. now in any discussion I have above tinyMCE the default option to post a comment, and soon after I submit a comment above the wyswyg editor a new text box (the default one) is made visible as well? what can i comment disable in order to have only the wyswyg?! thanks
I downloaded this plugin, and I spent an entire hour wondering why nothing was showing.
It turns out you named the JS file "tiny_mce.js" while in default.php you called it "tinymce.js".
Me too. I gave up on the plugin, but now it works for me....Yeah! thanks blasef
I'm glad that helped you. But this plugin still has a lot of bugs that I don't have time to fix, or even know how to.
1. A regular text box pops up ontop of the tinymce box when you click "Post Answer" 2. The tinymce box fails to appear when you click edit when you edit a conversation with more than 2 comments. Vanilla uses javascript to create a new textarea that TinyMCE fails to detect.
yes blasef you are right. I am also having trouble now. I want to just add hyper link and image to simple mode. Does not seem easy to do... Unfortunately not many options right now for users...
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
I've alerted the devs to it.
- I've updated class.headmodule.php
- I see two entries listed for "Vanilla TinyMCE" in my plugins list
- The second plugin list item only has an enable button, which doesn't work
- I can't disable the plugin once its enabled
- I also don't see a "Remove" button for the plugin
- TinyMCE doesn't appear on any discussion pages
- I switched back to the default Vanilla theme and it still doesn't work
Random feedback:now in any discussion I have above tinyMCE the default option to post a comment, and soon after I submit a comment above the wyswyg editor a new text box (the default one) is made visible as well?
what can i comment disable in order to have only the wyswyg?!
thanks
Shame on windows-minded programmers )
I have the same problem as Ebli.
1. When i post a comment with Tiny, a new text box appears. So, i have a normal text box + tiny editor box.
If you want to see it : http://uppix.net/8/4/5/0c12cbd4e4e2a341f2890c990b3da.png
2. When this plugin is enable, the full screen youtube mode is broken (not particular plugin for youtube, just vanilla 2 base).
$(parent).find('textarea').show();
in resetCommentForm() function at applications/vanila/js/dicsussion.js
var parent = $(sender).parents('div.CommentForm');
$(parent).find('li.Active').removeClass('Active');
$('a.WriteButton').parents('li').addClass('Active');
$(parent).find('div.Preview').remove();
(parent).find('textarea').show();
$('span.TinyProgress').remove();
}
Same thing happens after plugin réinstall.
It turns out you named the JS file "tiny_mce.js" while in default.php you called it "tinymce.js".
1. A regular text box pops up ontop of the tinymce box when you click "Post Answer"
2. The tinymce box fails to appear when you click edit when you edit a conversation with more than 2 comments. Vanilla uses javascript to create a new textarea that TinyMCE fails to detect.
Can someone help find the fixes for these bugs?
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