11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/generators/uriji_emoji_picker/install_generator.rb', line 11
def info
puts " =====================================================
#{yellow '😼 😼 😼 Uriji Emoji Picker'} #{yellow UrijiEmojiPicker::VERSION} #{yellow '😼 😼 😼'}
#{blue 'Repository'}: 'https://github.com/ID25/uriji_emoji_picker'
#{blue 'Author'}: Eugene Domosedov (ID25)
1. Add this data-attribute to your input/text field
#{green 'data: { emojiable: true }'}
2. Wrap your input with #{yellow '.emoji-picker-container'} css-class
#{green 'p.emoji-picker-container'}
3. To show text with emoji, use helper content_with_emoji
Exaple:
#{green 'p.emoji-picker-container'}
#{green '= f.text_field :title, class: "form-control", data: { emojiable: true }'}
#{green '= content_with_emoji(@post.title)'}
=====================================================
"
end
|