我正在使用angular-froala-wysiwyg
v3软件包,并且想插入编辑器jquery.atwho
插件中。
options: any = {
events: {
"initialized": (froalaEditor) => {
console.log(froalaEditor);
console.log(froalaEditor._editor);
console.log(froalaEditor._editor.$el);
console.log(froalaEditor._editor.el);
console.log(froalaEditor._element);
(<any>$(froalaEditor._element)).atwho();
}
}
};
在html中:
<div [froalaEditor]="options"></div>
但是有错误jquery__WEBPACK_IMPORTED_MODULE_3__(...).atwho is not a function
在更新到angular-froala-wysiwyg v3之前,我有适用于v2的工作代码:
options: any = {
events: {
"froalaEditor.initialized": (e, froalaEditor) => {
froalaEditor.$el.atwho();
}
}
};
该如何解决我的问题?