Instead of going for a parser I went for a CSS/JS solution to emoticons: https://github.com/JangoSteve/jQuery-CSSEmoticons
Genius concept. :)
質問
What would I need to accomplish this? I'm thinking of using the Phantom Open Emoji set, but I would need to integrate it.
If I can't use this, what could I use in exchange in order to have emojis in my content?
I imagine I would have to make a plugin for this right?
解決 2
Instead of going for a parser I went for a CSS/JS solution to emoticons: https://github.com/JangoSteve/jQuery-CSSEmoticons
Genius concept. :)
他のヒント
Sure, so you could make a plugin that utilises the renderDocument
event that does a find and replace on opts.content
for the emoji source and replaces it with the html equivalent.
Something like:
opts.content = opts.content.replace(/\:([a-z0-9])\:/i, function(a,b,c,d){
return 'replacement lookup';
});