ng-embed icon indicating copy to clipboard operation
ng-embed copied to clipboard

How to customize emoticon

Open ghost opened this issue 10 years ago • 7 comments

Hello,

Thank you for your great plugin. I have been browsing around to find out a way to customize it.

I see a fonts folder, and then images, and ng-embed.css. I am a little lost here... dont know where to start with. My guess here is that I need to figure out how to generate my custom images and corresponding ng-embed.css, not again..how.

Regards

ghost avatar Aug 28 '15 10:08 ghost

Hi @phuyem , What do you exactly want to configure ?

ritz078 avatar Aug 30 '15 16:08 ritz078

Well, like changing the smilies to kitties , or to ...pokemons for example ... I see that you support both font-based and image-based. For font based, a slight change of code and some basic knowledge character-code would do the job but for image-based... I gave up.

I am trying angular-smilies and they allow devs to easily customize icons. Just create the images,name them, add to config file then build with grunt

ghost avatar Aug 30 '15 17:08 ghost

Hi @phuyem , Got your point. That is a great idea that i will like to include in the next version.

ritz078 avatar Aug 30 '15 17:08 ritz078

Cool. Again. Thanks for your great plugin!

ghost avatar Aug 30 '15 18:08 ghost

Is this possible? I'd like to make use of angular-emoji-filter with ng-embed but they just seem to step on each other.

seiyria avatar Apr 19 '16 13:04 seiyria

@seiyria have you tried setting fontSmiley and emoji options to false? Applying the filters in different order also affects the output. Recommend to apply ng-embed first <div ng-bind-html="variable | embed:{fontSmiley:false, emoji:false} | emoji"></div> or set sanitizeHtml option to false in case you want ng-embed to handle some smilies or emoticons instead of emoji. <div ng-bind-html="variable | emoji | embed:{sanitizeHtml:false}"></div> Not sure it works though, angular-sanitise might remove some html generated by emoji.

robman87 avatar Feb 01 '17 06:02 robman87

I didn't know those were valid options but unfortunately I'm not working on that project anymote so I can't validate if it would work.

seiyria avatar Feb 01 '17 10:02 seiyria