We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How can I change the smiley collection in TinyMCE ? | Forum

Marc
Marc Jul 14 '13
hello,
in fact I have 2 problems :-)

How can I change the smiley collection in TinyMCE ?

I installed TinyMCE but I would like to replace the provided emoticons with my own collection.
I tried to replace the img files without result.
I found that this img directory is as well copied in ow_static/plugins/tinymce/etc ... but I can't edit it, CHMOD at 777 seems to be not working here as httpd is owner of the directory.

So, I tried to uninstall TinyMCE in order to install a fresh new copys with my emoticons, but it's not possible !

so my second problem is :
How can I uninstall TinyMCE ?

thank you for your help :)
The Forum post is edited by Marc Jul 14 '13
ross Team
ross Jul 15 '13
To change the smiley collection in the plugin you need to contact plugin developer


as to the uninstalling, do you get any kind of errors, what do you mean by impossible?

Marc
Marc Jul 15 '13
unfortunately, the plugin developper doesn't answer on his plugin support forum.
So, I'm working by myself on it...

regarding uninstalling through CPanel, it just says "an error occurred".
It has already been reported in plugin support forum and has not been fixed.
but I found a solution to this :
- delete tinymce directory from ow_plugins
- change directory owner (from "httpd" to "your_ftp_login") of ow_static/plugins/tinymce and then delete the directory,
- uninstall from CPanel.
The Forum post is edited by Marc Jul 15 '13
ross Team
ross Jul 15 '13
You need to uninstall the plugin via Admin Panel in the Installed plugin section
Marc
Marc Jul 16 '13
as I said, this plugin can't be uninstalled through Admin Panel (bug reported but not fixed). It can be only desactivated.

anyway, I worked hard (as I'm a noob in coding) and I think I have found a solution to customize smileys in Tinymce.
I will post it here if it works.
ross Team
ross Jul 16 '13
Sure, feedback is welcome and will be probably useful for someone. Thanks
Marc
Marc Jul 18 '13
btw, it's a pity nobody can really help. I have open some topics requiring for help, and got very few answers and noone was helpful.

so, I've found an easiest way to fix the problem for uninstalling Tinymce.
Just edit uninstall.php from Tinymce directory and delete or comment the last line, then reupload it :
/*OW::getDbo()->query("DELETE * FROM `".OW_DB_PREFIX."base_config` WHERE `key` like 'tinymce'");>*/

regarding changing smileys provided by the pluging, i'm still working on this issue ...
dave Leader
dave Jul 19 '13

did you try tinymce/static/js/plugins/emotions/img

 

also check out tinymce/static/js/plugins/emotions.htm

The Forum post is edited by dave Jul 19 '13
Marc
Marc Jul 19 '13
here are the changes I made in tinymce/static/js/plugins/emotions/

1) pasted my emoticons files (animated gifs) in img directory
eg : boat1.gif


2) edited emotions.htm to add them :
eg :
<tr><!--line 8 : Boats -->
        <td><a class="emoticon_link" role="button" title="{#emotions_dlg.boat1}. {#emotions_dlg.usage}" href="javascript:emotionsdialog.insert('boat1.gif','emotions_dlg.boat1');"><img src="img/boat1.gif" width="24" height="24" border="0" alt="{#emotions_dlg.boat1}. {#emotions_dlg.usage}" /></a></td>
</tr>

3) in /langs directory, edited en_dlg.js to add files and corresponding names
eg :
boat1:"boat1"

4) reinstalled Tinymce with modified files.

So it displays the new emoticons in the pop-up window, but insertion doesn't work.
I must have missed something.
Will go on research, but any advice would be much appreciated.




The Forum post is edited by Marc Jul 19 '13
Marc
Marc Jul 25 '13
(up)
any advice of where i'm wrong ?
ross Team
ross Jul 25 '13
Topic was moved from General Questions.