• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    HTML
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

😄 Let textarea or editable div has ability to insert emoji. 让文本框或div具备插入表情功能。

jQuery-emoji

让文本框或可编辑div具备插入表情功能。
Let textarea or editable div has ability to insert emoji.

预览 Preview

image

功能 Features

  • 支持给textarea或可编辑div加上表情功能,自动识别元素类型。
    Support for adding emoji into textarea or editable div, automatic identification of element types.
  • 如果是textarea,则选择表情后插入表情代码,如果是可编辑div,则直接插入表情图片。
    If it is textarea element,will insert code string of emoji, else, will insert emoji picture directly.
  • 支持自定义表情代码的格式。
    Support for specifying the code format of emoji.
  • 支持将表情代码转换为表情图片。
    Support for converting the code string of emoji into emoji picture.
  • 支持多组表情并提供tab切换。
    Support for multiple groups of emoji and tabs to toggle.
  • 示例已带有百度贴吧、emoji高清、qq高清3套表情。
    The demo has been with 3 sets of expression:Baidu tieba, emoji HD & QQ HD expressions.
  • 同一页面支持多个表情实例。
    Support for multiple instances in one page.

兼容性 Compatibility

兼容>=IE8的现代浏览器。
Compatible with IE8+ and modern browsers.

示例&文档 Demo&Doc

http://eshengsky.github.io/jQuery-emoji/

更新日志 Changelog

v1.3 2018/03/06

  • 增加一套默认表情。
    Add new default emoji package.
  • 新增参数'position'支持调整面板位置。
    Support to adjust panel postion with 'positon' option.
  • 修复IE8不兼容的问题。
    Fix some bugs on IE8.

v1.2 2016/03/04

  • 修改默认表情按钮图片,以解决IE下不显示svg类型base64图片的问题。
    Modify the default button image, in order to solve the problem that does not display svg type base64 image with IE.

v1.1 2016/03/03

  • 优化代码。
    Optimized code.
  • 移除原先的flag和prefix配置项,新增placeholder配置项,可以完全自定义表情代码。
    Removed flag and prefix configs, a new config placeholder added, you can completely customize the emoji code.
  • 现在分组名称不再是必填项。
    Now the name of the icons group is no more required.
  • 插入或转换后的表情图片现在有了一个emoji_icon的class,可以自己定义样式。
    The emoji picture inserted or parsed now has a class 'emoji_icon', you can define your style.
  • 优化将表情代码转换为表情图片时的正则表达式为懒惰匹配。
    Optimized the regular expression about parsing emoji code to emoji picture to lazy match.

许可协议 License

The MIT License (MIT)

Copyright (c) 2018 孙正华

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

iBlog

基于 Node.js 的开源个人博客系统,采用 Nuxt + Vue + TypeScript 技术栈。
Vue
1,336
star
2

node-bff

基于 Node.js 的可视化 BFF 解决方案。
Vue
215
star
3

lajax

🚀 lajax - 前端日志解决方案。
JavaScript
200
star
4

ServerLog

A simple, practical and innovative Node.js log library that enables you to view logs in Chrome dev tools and browser Console.
JavaScript
119
star
5

HostsDock

🎉 Store, manage and switch your hosts quickly.
JavaScript
99
star
6

Mocker

💎 HTTP/HTTPS mock tool, based on proxy server.
HTML
77
star
7

node-proxy

High performance HTTP and reverse proxy server based on Node.js. 基于 Node.js 的高性能 HTTP 及反向代理服务器,类似nginx。
JavaScript
75
star
8

saker

The template engine for Node.js and browsers.
JavaScript
46
star
9

chrome-extension-mocker

The most convenient tool to mock requests for axios, with built-in Chrome extension support.
Vue
42
star
10

pm2-server-monitor

The monitor for pm2 node.js servers, with nice web UI.
CSS
37
star
11

iBlog.Net

美观大方、功能全面的个人博客系统。
JavaScript
33
star
12

vue-card-swipe

A touch slider for vue.js, support sliding in any direction to switch cards, compatible with PC and mobile.
Vue
31
star
13

lajax4wx

前端日志解决方案 for微信小程序
JavaScript
28
star
14

filter-bar

适用于移动端列表页面的筛选条插件。
JavaScript
14
star
15

chrome-extension-server-log

在 Chrome F12 中查看服务器端的日志。
JavaScript
11
star
16

node-api

Node.js 中文 API 文档。
4
star
17

jQuery-cycleText

Cycle display text.循环交替显示文本。
HTML
4
star
18

node-static-server

基于Node.js的静态资源服务器,支持浏览器缓存,支持多文件合并请求。
JavaScript
3
star
19

jQuery-inputTip

Add tips in input text. 在input文本框中加入提示文字。
JavaScript
2
star
20

pwa-demo

pwa在线示例,请使用安卓手机最新版Chrome浏览器查看。
HTML
2
star
21

fine.js

A fine, tiny and practical JavaScript utility library. 一个精致、小巧、实用的javascript工具库。
JavaScript
2
star
22

iBlog2Nuxt

临时仓库,iBlog2重构版,基于Nuxt.js,重构完成后将合并至iBlog2仓库。
Vue
2
star
23

jQuery-inputClear

Add clear button into input text.在input文本框中加入清除按钮。
HTML
2
star
24

return-action

Let web page supports return action like native app.
HTML
1
star