|
|
@ -3932,9 +3932,7 @@ _extend(KToolbar, KWidget, {
|
|
|
|
pdiv = $("#define",container);
|
|
|
|
pdiv = $("#define",container);
|
|
|
|
}else if(!$("#full",container).is(':hidden')){
|
|
|
|
}else if(!$("#full",container).is(':hidden')){
|
|
|
|
pdiv = $("#full",container);
|
|
|
|
pdiv = $("#full",container);
|
|
|
|
}else if($("#full",container).is(':hidden') && $("#define",container).is(':hidden')){ //都隐藏的情况下
|
|
|
|
}
|
|
|
|
pdiv = $("#define", container);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return (this._itemMap[name] = K('span.ke-icon-' + name, pdiv).parent());
|
|
|
|
return (this._itemMap[name] = K('span.ke-icon-' + name, pdiv).parent());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
select : function(name) {
|
|
|
|
select : function(name) {
|
|
|
@ -4731,21 +4729,15 @@ function _bindTabEvent() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _bindFocusEvent() {
|
|
|
|
function _bindFocusEvent() {
|
|
|
|
var self = this;
|
|
|
|
var self = this;
|
|
|
|
K(self.edit.textarea[0], self.edit.win).focus(function(e) {
|
|
|
|
K(self.edit.textarea[0], self.edit.win).focus(function(e) {
|
|
|
|
if(typeof self.afterFocus == 'string'){
|
|
|
|
if (self.afterFocus) {
|
|
|
|
self.afterFocus = eval(self.afterFocus);
|
|
|
|
self.afterFocus.call(self, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( typeof self.afterFocus == 'function') {
|
|
|
|
}).blur(function(e) {
|
|
|
|
self.afterFocus.call(self, e);
|
|
|
|
if (self.afterBlur) {
|
|
|
|
}
|
|
|
|
self.afterBlur.call(self, e);
|
|
|
|
}).blur(function(e) {
|
|
|
|
}
|
|
|
|
if(typeof self.afterBlur == 'string'){
|
|
|
|
});
|
|
|
|
self.afterBlur = eval(self.afterBlur);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( typeof self.afterBlur == 'function') {
|
|
|
|
|
|
|
|
self.afterBlur.call(self, e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _removeBookmarkTag(html) {
|
|
|
|
function _removeBookmarkTag(html) {
|
|
|
|
return _trim(html.replace(/<span [^>]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/ig, ''));
|
|
|
|
return _trim(html.replace(/<span [^>]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/ig, ''));
|
|
|
|