at改为点击时加载.
This commit is contained in:
parent
e9a45012f8
commit
488e62472d
|
@ -41,7 +41,16 @@ var enableAt = function(_editor) {
|
||||||
limit: 200
|
limit: 200
|
||||||
};
|
};
|
||||||
|
|
||||||
$inputor = $(ifrBody).atwho(at_config);
|
console.log(_editor.options);
|
||||||
|
|
||||||
|
var input = $(ifrBody);
|
||||||
|
_editor.options.enable_at = function(){
|
||||||
|
input.atwho(at_config);
|
||||||
|
}
|
||||||
|
|
||||||
|
//$(ifrBody).atwho(at_config);
|
||||||
|
|
||||||
|
|
||||||
//$inputor.caret('pos', 47);
|
//$inputor.caret('pos', 47);
|
||||||
//$inputor.focus().atwho('run');
|
//$inputor.focus().atwho('run');
|
||||||
};
|
};
|
||||||
|
|
|
@ -4730,6 +4730,10 @@ 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.options.enable_at === 'function'){
|
||||||
|
self.options.enable_at();
|
||||||
|
}
|
||||||
if (self.afterFocus) {
|
if (self.afterFocus) {
|
||||||
self.afterFocus.call(self, e);
|
self.afterFocus.call(self, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue