Socket
Socket
Sign inDemoInstall

react-email-editor

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-email-editor - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

2

package.json
{
"name": "react-email-editor",
"version": "0.2.5",
"version": "0.2.6",
"description": "react-email-editor React component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,16 +0,65 @@

# react-email-editor
# React Email Editor by Unroll
[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
The excellent [Unroll](https://unroll.io) email editor as a [React.js](http://facebook.github.io/react) component. This is the most powerful and developer friendly email builder for your app.
Describe react-email-editor here.
Video Overview |
:---: |
[![React Email Editor](https://s3.amazonaws.com/unroll-assets/unrollyoutube.png)](https://www.youtube.com/watch?v=IoY7-NZ8TcA) |
*Watch video overview: https://youtu.be/IoY7-NZ8TcA* |
[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo
## Installation
[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package
The easiest way to use React Email Editor is to install it from NPM and include it in your own React build process.
[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo
```
npm install react-email-editor --save
```
## Usage
Require the EmailEditor component and render it with JSX:
```javascript
import React, { Component } from 'react'
import { render } from 'react-dom'
import EmailEditor from 'react-email-editor'
class App extends Component {
render() {
return <div>
<h1>react-email-editor Demo</h1>
<div>
<button onClick={this.exportHtml}>Export HTML</button>
</div>
<EmailEditor
ref={designer => this.designer = designer}
/>
</div>
}
exportHtml = () => {
this.designer.exportHtml(html => {
console.log('exportHtml', html)
})
}
}
render(<App />, document.getElementById('app'))
```
### Properties
* `style` `Object` style object for the editor container (default {})
* `minHeight` `String` minimum height to initialize the editor with (default 500px)
* `options` `Object` options passed to the Unroll editor instance (default {})
See the [Unroll Docs](https://docs.unroll.io/getting-started/) for all available options.
See the [example source](https://github.com/unroll-io/react-email-editor/blob/master/demo/src/index.js) for a reference implementation.
### License
Copyright (c) 2016 Jed Watson. [MIT](LICENSE) Licensed.
/*!
* react-email-editor v0.2.5
* react-email-editor v0.2.6
* MIT Licensed

@@ -4,0 +4,0 @@ */

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc