angular.js - angularjs 如何集成uditor插件??
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-15 17:01:33
0
3
544

angularjs 如何集成uditor插件??

网上有那么几个教程,当都是没怎么卵用,要么说得很笼统。

谁能教一教,貌似关于uditor的在这上面也没有半点信息。。

其中有一个插件:
https://github.com/zqjimlove/angular-ueditor

但是需要什么bower安装。用一个插件要装这么多东西....

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(3)
Peter_Zhu
可以自己封装成服务。但是需要注意umeditor.js文件含有初始化代码,切换路由时,要么重新加载此文件,要么把此文件封装成函数再执行一次。
当然最好使用第二种方法,然后再把代码压缩一次。

My blog description:
http://www.cnblogs.com/mazhao...

小葫芦

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.

左手右手慢动作

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template