bug#2846:编辑器点击打开表情,选择相关表情后,弹出的表情选择框没有自动关闭
This commit is contained in:
parent
4e1cf3e16d
commit
9606ce1caa
|
@ -13,6 +13,7 @@ KindEditor.plugin('emoticons', function(K) {
|
||||||
allowPreview = self.allowPreviewEmoticons === undefined ? true : self.allowPreviewEmoticons,
|
allowPreview = self.allowPreviewEmoticons === undefined ? true : self.allowPreviewEmoticons,
|
||||||
currentPageNum = 1;
|
currentPageNum = 1;
|
||||||
self.clickToolbar(name, function() {
|
self.clickToolbar(name, function() {
|
||||||
|
this.edit.focus();//如果没有这句 火狐下取不到焦点 导致_getSel()为空 报错
|
||||||
var rows = 5, cols = 9, total = 135, startNum = 0,
|
var rows = 5, cols = 9, total = 135, startNum = 0,
|
||||||
cells = rows * cols, pages = Math.ceil(total / cells),
|
cells = rows * cols, pages = Math.ceil(total / cells),
|
||||||
colsHalf = Math.floor(cols / 2),
|
colsHalf = Math.floor(cols / 2),
|
||||||
|
|
Loading…
Reference in New Issue