@ -41,7 +41,16 @@ var enableAt = function(_editor) {
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.focus().atwho('run');
@ -4730,6 +4730,10 @@ function _bindTabEvent() {
function _bindFocusEvent() {
var self = this;
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) {
self.afterFocus.call(self, e);