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:
Grab the latest release and javascript
file:
Then add angular-ueditor
to your modules dependencies:
angular
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
Editor customization
You can customize the UEditor by UE start config
...
**If Element ID exists then the editor will keep save the status and content **
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
...
Building
If you want to build from master, you need to:
npm installgrunt
Test
npm installnpm test
License
Mit License: http://www.opensource.org/licenses/mit-license.php