im using CKEditor and would like to add more smileys.
ive been wrestling with this, googling, etc. but am lost... can anyone help?
Thanks in advance :)

Comments

dadasG’s picture

Bump

but I fear we will be directed to the CKEditor website, which unfortunately is a bit tough to navigate.

jcisio’s picture

Status: Active » Fixed
mttjn’s picture

mttjn’s picture

Status: Fixed » Active

Thank you, Jcisio... Maybe I'm just stupid but those aren't the clearest instructions I've ever seen... :)

In the spirit of the great Drupal community, if anyone does understand that link (and the info there actually works - has anyone tested it?), could they please bullet point exactly what you need to do to get this working... I'm going to play around some more with this, and if i get there first i will do so.

(I know this could be viewed as a CKEditor forum question... but since CKEditor is a Drupal module, let's get a good explanation together HERE for any Drupaler who wants to know! :) )

Thx

PS. Im not sure if I'm allowed/supposed to change Status from "fixed" to "active" - if I've violated some Drupal code of etiquette here, I apologize!... I only mean to indicate that for me (and maybe for others in the same position) I don't feel that I've got a clear solution yet.

dadasG’s picture

Status: Active » Closed (won't fix)

If you'd like things to become even more vague go here http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html and press Ctrl + f, and type in smiley.

Personally I've tried editting the config files over and over, but hasn't worked.

Unfortunately CKEditor is not a drupal module, it is its own project, with its own website, forum, etc.

WYSIWYG HTML Editor is the drupal module, and simply allows us to use HTML editors such as CKEditor, TinyMCE, etc.

I think the only way you'll solve this one is to try Google / sit down and read the code, and change what you need to.

If and when I get this sorted I'll def post back here, but it's not top of the priority list right now, so can't tell you when that'll be.

mttjn’s picture

Status: Closed (won't fix) » Active

@dadasG

I think we can be a bit more optimistic...

Rather than give up on this one (and prematurely mark the issue as "closed"), let's please keep it open so that others who come across this issue know that people (including me) are working on it.

We WILL get an answer to this. Eventually ;)

mototribe’s picture

subscribe

paadamson’s picture

I had this issue today, and followed the instructions at http://cksource.com/forums/viewtopic.php?f=6&t=16908 and it worked for me.

  • Copy your mysmile.gif to /sites/all/modules/ckeditor/ckeditor/ckeditor/plugins/smiley/images/
  • Open /sites/all/modules/ckeditor/ckeditor/ckeditor/ckeditor.js in your editor of choice,
  • Search for i.smiley_images and find the comma separated list of smileys. Add your smiley to the end of this list: ,'mysmile.gif'
  • Search for i.smiley_descriptions and find the comma separated list of smiley descriptions. Add your keyword to the end of this list: ,'mysmile'
  • Save the file, clear all caches, etc.
  • Edit a node and litter it with your custom smiley

It's not a pretty, but it's worked for me.

djg_tram’s picture

Although this works, modifying ckeditor.js is much like modifying Drupal core: you shouldn't do it. If you ever need to udpate the editor, your changes will be lost.

But the solution is really simple, only in Drupal, you have to modify a slightly different file than the one described on the CKEditor site. The file to modify is sites/all/modules/ckeditor/ckeditor.config.js, not the other config.js one folder below this.

The rest is the same, you need to specify the folder, the file names and the descriptions, as described in previous posts.

mkesicki’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xoruna’s picture

Issue summary: View changes

It took me forever to figure out where to do the same in Drupal 7, so I share the information for those who are interested:
the file you have to edit is sites/all/libraries/ckeditor/ckeditor.js
where you can reproduce the steps described in #8