6 Star 29 Fork 5

蓝飞 / jquery-sina-emotion

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md
MIT

jQuery Sina Emotion · GitHub license npm version

一个用于方便快速地创建新浪微博表情选择对话框的 jQuery 插件。

有何特点

  • 使用简单,一行代码即可创创建出表情选择对话框
  • 自带智能表情解析方法(但还是建议表情解析在服务端进行)
  • 兼容IE6+、Chrome、Firefox、Opera等各种浏览器

插件演示

演示地址

使用方法

// 未指定插入文本框时,自动寻找同表单中第一个 textarea 或 input[type=text] 元素
$(selector).click(function(event){
	$(this).sinaEmotion();
	event.stopPropagation();
});

// 手动指定插入文本框
$(selector).click(function(event){
	$(this).sinaEmotion(target);
	event.stopPropagation();
});

参数配置

$.fn.sinaEmotion.options = {
    pageSize: 72 // 每页显示的表情数
};

表情解析

$(selector).parseEmotion();

具体的使用方法请看 Demo

获取插件

更新日志

  • 1.0.0(2012.08.22)
  • 1.1.0
    • 完善代码并于Google Code开源
  • 1.2.0
    • 修正同一页面中对不同文本框使用该插件时插入位置错误的BUG(感谢 @BelinChung 提出)
  • 1.3.0
    • 修正IE下负margin失效导致表情换行的小BUG(由 @蜗牛都知道 发现)
  • 2.0.0
    • 全新重构插件代码
    • 新增表情解析方法
    • 开源于 GitHub码云
  • 2.1.0
    • 修复多次调用插件而对象文本框不同时,表情文本插入对象错乱问题
    • 修复表情接口未返回时,多次调用解析表情方法未成功解析的问题
    • 修改表情选择框显示机制,提高使用自由度(与低版本不兼容,升级插件时请注意修改调用方式,详见Demo)
    • 一些优化
  • 3.0.0
    • 兼容 webpack 等模块打包器
    • 优化代码,修复一些偶现的 Bug
    • 作为 npm 模块发布
  • 4.0.0
    • 移除新浪微博接口请求
The MIT License (MIT) Copyright (c) 2014 蓝飞 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.

About

一个用来方便快速地创建新浪微博表情选择对话框的jQuery插件。 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/lanfei/jquery-sina-emotion.git
git@gitee.com:lanfei/jquery-sina-emotion.git
lanfei
jquery-sina-emotion
jquery-sina-emotion
master

Search

F2647f8d 8189591 Bbdfb06e 8189591