Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Conversation Text Box Formating
minagirgis1
New
Vanilla Version 2.0.18.9
Hey Guys,
Can I add a rich text toolbar on conversations text box? I am using WYSIWYG (CLEditor) for discussions and comments but that is not enabled on conversations.
Tagged:
0
Comments
The tinyMCEfour plugin works for all the forms.
http://vanillaforums.org/addon/tinymcefour-plugin
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
there are too many options in that text editor....not that i wouldn't like that.
ok, you can remove the options you do not want, but you can also in theory add the forms you want cleditor to work on
in the plugin php file look for this , it is what adds the editor to the forms and add the ones you want,
replace
jQuery("#Form_Body")
with this to include all the forms you want cleditor on
jQuery('#Form_Body,body.Profile #Form_Comment,body.Activity #Form_Comment,#Form_ConversationMessage')
Inside this block
Have not tested this, it is theoretical .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Here is a link to a patch I made for 2.1b1. Not sure if it will work for 2.0, but I can't test it right now.
http://vanillaforums.org/discussion/comment/184782/#Comment_184782
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight Is the new Form method for doing textboxes with formatting included not in 2.1 at all, or is it just not used in Conversations?
In 2.1b2:
The Gdn_Form::BodyBox method seems to be in use in Conversations. ButtonBar and Emotify don't seem to handle the BeforeBodyBox event though.
That would definitely be a cleaner implementation
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I also came up with how to add cleditor to other forms in 2.1
http://vanillaforums.org/discussion/23656/how-to-add-cleditor-to-all-forms#latest
It does not work in 2.0 I tried it.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Thank you all. I'll try these options and let you know.