All threads / Markdown/Emoji : how to host images?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Markdown/Emoji : how to host images?

Boris Baskovec asked in Site Feedback

Hi,

I watched https://gorails.com/episodes/markdown-emoji-with-html-pipeline-gem and I'm wondering 2 things :

  • Where did you find the asset_root of the emoji images?
  • How do you use your own Emoji files instead of using an external link? I tried it several ways but I can't find one that works

Thank you

I can't remember where I grabbed that from exactly, but some documentation somewhere. If you want to host your own, check out https://github.com/HenrikJoreteg/emoji-images and you can serve up the pngs folder in your app. Of course, you'll want to put those in your public directory and not the asset pipeline so they stay the same filenames and don't get compiled.

Hi @chris, I'm having hard time figuring out how to host the folder in my app. should I install the npm package from here https://github.com/HenrikJoreteg/emoji-images in my app?!

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.