Emoticon edits

Emoticon edits

by Chris Surridge -
Number of replies: 2

Hello

I would be grateful if someone could tell me which file to edit
to add keyboard shortcuts (inserttext) commands for emoticons.
I've searched high and low. big grin

I have some new emoticons for my students and I'd like to assign
keyboard characters to trigger them, like the ": - )" characters.

I already have the gifs and can edit the popups. I just need to
add the inserttext strings.

Many thanks in advance.
Chris

Average of ratings: -
In reply to Chris Surridge

Re: Emoticon edits

by Janne Mikkonen -
The keyboard shortcuts are in htmlarea.php (if you mean like ctrl + a and so on) starting from line 1926 (HTMLArea.prototype._editorEvent).

If you're seeking for function that changes written emoticon to image, that'll you find in /lib/weblib.php ( function replace_smilies ).

Hopefully either is helpful.

- Janne -
In reply to Janne Mikkonen

Re: Emoticon edits

by Chris Surridge -

Thanks Janne! big grin

As usual, you're THE MAN! I deeply appreciate your help.
My students are going to be so happy!

Chris