Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji icon (to open other emojis) is not showing in production #27

Open
shaam48 opened this issue Mar 12, 2018 · 1 comment
Open

Emoji icon (to open other emojis) is not showing in production #27

shaam48 opened this issue Mar 12, 2018 · 1 comment

Comments

@shaam48
Copy link

shaam48 commented Mar 12, 2018

@ID25
The Emoji icon (to open other emojis) (see below) is not showing in production and there are no JS errors - It is working in development but not in production

image

@shaam48 shaam48 changed the title textarea row attribute not working when adding data: { emojiable: true } 'data: { emojiable: true }' attribute creates it's own element & prevents another gem from using the textarea selector Mar 16, 2018
@shaam48
Copy link
Author

shaam48 commented Mar 16, 2018

@ID25 I have followed these instructions as well:
config/initializers/assets.rb

Rails.application.config.assets.precompile += %w( rails_emoji_picker.js )

application.html.erb

<body>
<div class="container">
  <%= render 'layouts/header' %>
  <%= yield %>
</div>

<%= javascript_include_tag 'rails_emoji_picker' %>
</body>

Emoji.asset_path should looks like this

Emoji.asset_path = '/assets/emoji/'

From #8

@shaam48 shaam48 changed the title 'data: { emojiable: true }' attribute creates it's own element & prevents another gem from using the textarea selector Emoji icon (to open other emojis) is not showing in production Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant