https://github.com/maiscrm/angular1-ueditor
ueditor angular directive
https://github.com/maiscrm/angular1-ueditor
Last synced: 6 months ago
JSON representation
ueditor angular directive
- Host: GitHub
- URL: https://github.com/maiscrm/angular1-ueditor
- Owner: maiscrm
- Created: 2017-10-23T07:00:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T07:22:16.000Z (over 8 years ago)
- Last Synced: 2025-06-11T08:13:50.601Z (about 1 year ago)
- Language: JavaScript
- Size: 2.47 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
angular-ueditor
===============
**angular-ueditor** is a prot of Baidu [UEditor](http://ueditor.baidu.com)
The goal is to use UEditor whit angular easier
## Demo
http://zqjimlove.github.io/angular-ueditor/
## Installation
Include both the `javascript` file of [UEditor](http://ueditor.baidu.com):
```html
```
Grab the latest release and `javascript` file:
```html
```
Then add `angular-ueditor` to your modules dependencies:
```js
angular.module('app', ['ng.ueditor'])
```
## Bower install
**You should include the `javascript` file of [UEditor](http://ueditor.baidu.com) by yourself,because the UEDitor not in Bower**
```Shell
bower install angular-ueditor --save
```
## Usage
#### Basic usage
**Must bind `NgModel`**
```html
```
#### Editor customization
You can customize the UEditor by [UE start config](http://fex-team.github.io/ueditor/#start-config)
```html
...
$scope.config = {
...
}
```
## 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
```html
...
$scope.ready = function(editor){
alert(editor.getContent());
}
```
## Building
If you want to build from master, you need to:
```Shell
npm install
grunt
```
## Test
```Shell
npm install
npm test
```
## License
Mit License: http://www.opensource.org/licenses/mit-license.php