How to integrate uditor plug-in in angularjs? ?
There are so many tutorials on the Internet, but they are all useless or very general.
Can anyone give me some advice? It seems that there is no information about the auditor. .
There is a plug-in:
https://github.com/zqjimlove/angular-ueditor
But what bower installation is required? There are so many things to install with one plug-in....
天蓬老师2017-05-15 17:03:33
可以自己封装成服务。但是需要注意umeditor.js文件含有初始化代码,切换路由时,要么重新加载此文件,要么把此文件封装成函数再执行一次。
当然最好使用第二种方法,然后再把代码压缩一次。
My blog description:
http://www.cnblogs.com/mazhao...
高洛峰2017-05-15 17:03:33
ueditor can be used alone, it has nothing to do with whether you use angular or not.
You can just download ueditor related files. Of course, if you want a modular approach, that’s a different matter.
ringa_lee2017-05-15 17:03:33
Bower is a package management tool that can easily help you download various packages, so it has nothing to do with plug-ins. You should be able to directly copy the js in dist, I guess.
Back to ueditor, it really has nothing to do with using angular. You can follow the official website documentation and reference those files in the index.html file, and then you can use it directly in the controller without loading it through modules