문제

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';
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top