ember-cli-emojii

0.1.1 • Public • Published

Emoji for Ember

Code Climate Build Status Ember Observer

This Ember CLI addon for Emojify provides emoji-icon helper and emoji-tag component to your app.

Emojify Icons

Installation

ember install ember-cli-emoji

Setup

Add your Emoji configuration to your app's config

// default config
mode: 'sprites',
tag_type: 'span',
img_dir: 'images/emoji',
ignore_emoticons: false,
blacklist: {
  elements: ['script', 'textarea', 'a', 'pre', 'code'],
  classes: ['no-emojify']
}

// config/environment.js
ENV.emoji = {
  tag_name: "div"
};

Usage

Emoji Icon Helper Usage

{{emoji-icon 'smiley'}}

It converts to <span title=":smiley:" class="emoji emoji-smiley"></span>

Emoji Tag Usage

{{#emoji-tag}}
  Hello :smiley:
{{/emoji-tag}}

It converts content inside the emoji-tag, and detects content change then update emoji icons.

Contributing

PRs welcome!

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i ember-cli-emojii

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

10.7 kB

Total Files

13

Last publish

Collaborators

  • james1x0