How can i ad smilies in the following places?
1. BE: in pages in the admin section (in the section of bold italic etc etc)
2. FE: post comment section
3. FE: forums
Does anyone have an idea.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
How can i ad smilies in the following places?
1. BE: in pages in the admin section (in the section of bold italic etc etc)
2. FE: post comment section
3. FE: forums
Does anyone have an idea.
For adding smilies to the tinymce (admin section) - have a look at the tinymce documentation.
http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions
Note that SS has customised tinymce for the cms, so you might need to do some code research.
Another option would be to use an external class - some googling brought me http://www.phpclasses.org/browse/file/2694.html. Then you could just use that to replace every smiley tag before outputting any content.
Just trying to hint.. never did any of this myself (yet).
i found this at /cms/javascript/tinymce.template
theme_advanced_buttons1 : "italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,flash",
theme_advanced_buttons3 : "",
theme_advanced_buttons3_add : "emotions",
/*
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,link,unlink,anchor,image,separator,cleanup,removeformat,visualaid,code,separator,tablecontrols",
*/
The last part is commented out.
But the last part is visible in the cms, the first part (the part with emotions in there) is not commented and should be active on the cms right? But it isn't active..