1 Star 0 Fork 9

龙猫 / angular-ueditor

forked from 胡晋 / angular-ueditor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

angular-ueditor

angular-ueditor is a prot of Baidu UEditor

The goal is to use UEditor whit angular easier

Demo

http://zqjimlove.github.io/angular-ueditor/

Installation

Include both the javascript file of UEditor:

<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 javascript file:

<script type="text/javascript" src="angular-ueditor.js"></script>

Then add angular-ueditor to your modules dependencies:

angular.module('app', ['ng.ueditor'])

Bower install

You should include the javascript file of UEditor by yourself,because the UEDitor not in Bower

bower install angular-ueditor --save

Usage

Basic usage

Must bind NgModel

<div class="ueditor" ng-model="content"></div>

Editor customization

You can customize the UEditor by UE start config

<div class="ueditor" config="config" ng-model="content"></div>
...
<script>
    $scope.config = {
        ...
    }
</script>

Method

ready(listener)

Registers a listener callback to be executed whenever the editor ready.

Parameters
parame type Details
listener function(editor) Callback called whenever the editor ready.
Example
<div class="ueditor" ready="ready" ng-model="content"></div>
...
<script type="text/javascript">
    $scope.ready = function(editor){
        alert(editor.getContent());
    }
</script>

Building

If you want to build from master, you need to:

npm install
grunt

Test

npm install
npm test

License

Mit License: http://www.opensource.org/licenses/mit-license.php

空文件

简介

Angular port for Baidu UEditor 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/teamsir/angular-ueditor.git
git@gitee.com:teamsir/angular-ueditor.git
teamsir
angular-ueditor
angular-ueditor
master

搜索帮助

14c37bed 8189591 565d56ea 8189591