在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:angular-ueditor开源软件地址:https://gitee.com/inhu/angular-ueditor开源软件介绍:angular-ueditorangular-ueditor is a prot of Baidu UEditor The goal is to use UEditor whit angular easier Demohttp://zqjimlove.github.io/angular-ueditor/ InstallationInclude both the <script type="text/javascript" src="/ueditor/ueditor.config.js"></script><script type="text/javascript" src="/ueditor/ueditor.all.js"></script> Grab the latest release and <script type="text/javascript" src="angular-ueditor.js"></script> Then add angular.module('app', ['ng.ueditor']) Bower installYou should include the bower install angular-ueditor --save UsageBasic usageMust bind <div class="ueditor" ng-model="content"></div> Editor customizationYou can customize the UEditor by UE start config <div class="ueditor" config="config" ng-model="content"></div>...<script> $scope.config = { ... }</script> Method
|
parame | type | Details |
---|---|---|
listener | function(editor) | Callback called whenever the editor ready. |
<div class="ueditor" ready="ready" ng-model="content"></div>...<script type="text/javascript"> $scope.ready = function(editor){ alert(editor.getContent()); }</script>
If you want to build from master, you need to:
npm installgrunt
npm installnpm test
Mit License: http://www.opensource.org/licenses/mit-license.php
请发表评论