1.1.2 • Published 4 years ago

react-edit-it v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

:rocket: React-Markdown-Editor

Markdown editor for React JS

NPM JavaScript Style Guide

NPM

usage

Installation

Can be installed via npm:

npm install --save react-edit-it 

Or yarn

yarn add react-edit-it 

:bowtie: Basic Usage

The most basic use of the markdown editor can be described with:

import React, { Component } from "react";

import ReactMarkdownEditor from "react-edit-it";

class Example extends Component {
  onChangeContent = props => {
    // Access Props
  };

  render() {
    return (
      <ReactMarkdownEditor
      // Pass the text content to be converted to markdown as props
        content="demo"
        onChangeContent={this.onChangeContent}
      />
    );
  }
}

onChangeContent event handler fires each time when the content has been edited. You can use it to access the editor text content

usage

Compatibility

React

Compatible with the latest version of 16.x

Latest compatible versions:

  • 15.x and 16.x

Options

PropertyTypeDescription
contentstringMarkdown content to be converted
onChangeContentfuncCalled when the editor content is updated

Sample Code

Code sample is available in the /example directory for your perusal. You can execute npm install to generate the necessary dependencies for the examples.

if you haven't, You may need to install,

  • npm or nvm (Go with nvm, its much easier to switch versions! :neckbeard:)
  • Node 8.16.0 or Node 10.16.0 or later version

License

MIT © HasiniWijerathna

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago