Skip to content

Commit

Permalink
Webpack and node module ready
Browse files Browse the repository at this point in the history
  • Loading branch information
symunona committed Nov 28, 2022
1 parent a7648f8 commit 8972262
Show file tree
Hide file tree
Showing 11 changed files with 2,444 additions and 952 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@
<link href="lib/css/emoji.css" rel="stylesheet">
```

2. Before the end of your `<body>` section, add the following *JavaScript* links. This library depends on jQuery, so jQuery must also be included, before these scripts are run. Once again, adjust the `lib/js` path to match yours.
2. Before the end of your `<body>` section, add the following *JavaScript* links. This library depends on jQuery, so jQuery must also be included, before these scripts are run. Once again, adjust the `dist` path to match yours.

```
<!-- ** Don't forget to Add jQuery here ** -->
<script src="lib/js/config.js"></script>
<script src="lib/js/util.js"></script>
<script src="lib/js/jquery.emojiarea.js"></script>
<script src="lib/js/emoji-picker.js"></script>
<script src="dist/emoji-picker.min.js"></script>
```

3. On any input field, add the data attribute `data-emojiable="true"`.
Expand Down Expand Up @@ -62,7 +58,7 @@ They are!
- To get the value of the contenteditable div, call `element.val()` on the underlying hidden input field. The `<img>` emojis will be converted into Unicode emojis (plain text)

### Credits:
This is a slightly modified version of [angular-emoji-popup](https://github.com/Coraza/angular-emoji-popup), which was written based on [jquery-emojiarea](https://github.com/diy/jquery-emojiarea) (converts input fields to rich emoji input areas) and uses [nanoScrollerJs](https://github.com/jamesflorentino/nanoScrollerJS) (for the popup's custom-skinned scrollbar). This version removes AngularJS as a dependency.
This is a slightly modified version of [angular-emoji-popup](https://github.com/Coraza/angular-emoji-popup), which was written based on [jquery-emojiarea](https://github.com/diy/jquery-emojiarea) (converts input fields to rich emoji input areas) and uses [nanoScrollerJs](https://github.com/jamesflorentino/nanoScrollerJS) (for the popup's custom-skinned scrollbar). This version removes AngularJS as a dependency. Webpack support provided by [FuseDesk](https://github.com/FuseDesk).

### Improvements from the original forks:
- The top-right smiley face that allows you to bring up the emoji picker menu
Expand Down
7 changes: 2 additions & 5 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<body class="text-center">
<h1>emoji-picker</h1>
<p>
<a class="btn btn-secondary" href="https://github.com/one-signal/emoji-picker" target="_blank">
<a class="btn btn-secondary" href="https://github.com/FuseDesk/emoji-picker" target="_blank">
View on GitHub <i class="fa fa-lg fa-github"></i>
</a>
</p>
Expand Down Expand Up @@ -48,10 +48,7 @@ <h1>emoji-picker</h1>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>

<!-- Begin emoji-picker JavaScript -->
<script src="../lib/js/config.js"></script>
<script src="../lib/js/util.js"></script>
<script src="../lib/js/jquery.emojiarea.js"></script>
<script src="../lib/js/emoji-picker.js"></script>
<script src="../dist/emoji-picker.min.js"></script>
<!-- End emoji-picker JavaScript -->

<script>
Expand Down
2 changes: 2 additions & 0 deletions dist/emoji-picker.min.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions dist/emoji-picker.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*!
* Sizzle CSS Selector Engine v2.3.5
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2020-03-14
*/

/*!
* jQuery JavaScript Library v3.5.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2020-05-04T22:49Z
*/
1 change: 1 addition & 0 deletions lib/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3540,3 +3540,4 @@ function buildMap()
}
}

module.exports = Config
280 changes: 140 additions & 140 deletions lib/js/emoji-picker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8972262

Please sign in to comment.