You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-slate-medium-editor

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slate-medium-editor

WYSIWYG Medium-like editor for react

1.0.6
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

react-slate-medium-editor

WYSIWYG Medium-like editor for react

NPM JavaScript Style Guide

WORK IN PROGRESS

Install

npm install --save react-slate-medium-editor

Usage

import React, { Component } from "react";
import { ReactSlateMediumEditor } from "react-slate-medium-editor";

class Example extends Component {
  state = {
    value: null
  };

  onChange = value => {
    this.setState({ value });
  };

  render() {
    return (
      <ReactSlateMediumEditor
        onChange={this.onChange}
        value={value}
        onFileSelected={file => someFunction(file)}
      />
    );
  }
}

License

MIT © ntgussoni

FAQs

Package last updated on 08 Nov 2019

Did you know?

Socket

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