bug#2846:编辑器点击打开表情,选择相关表情后,弹出的表情选择框没有自动关闭

This commit is contained in:
yutao 2015-06-16 13:35:11 +08:00
parent 4e1cf3e16d
commit 9606ce1caa
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ KindEditor.plugin('emoticons', function(K) {
allowPreview = self.allowPreviewEmoticons === undefined ? true : self.allowPreviewEmoticons,
currentPageNum = 1;
self.clickToolbar(name, function() {
this.edit.focus();//如果没有这句 火狐下取不到焦点 导致_getSel()为空 报错
var rows = 5, cols = 9, total = 135, startNum = 0,
cells = rows * cols, pages = Math.ceil(total / cells),
colsHalf = Math.floor(cols / 2),