Socket
Socket
Sign inDemoInstall

angular-ueditor

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-ueditor

angular-ueditor =============== **angular-ueditor** is a prot of Baidu [UEditor](http://ueditor.baidu.com)


Version published
Weekly downloads
14
increased by600%
Maintainers
1
Install size
26.8 kB
Created
Weekly downloads
 

Readme

Source

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>

**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
parametypeDetails
listenerfunction(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

FAQs

Last updated on 13 Jun 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc