react-medium-editor-2

React wrapper to medium editor js library

Usage no npm install needed!

<script type="module">
  import reactMediumEditor2 from 'https://cdn.skypack.dev/react-medium-editor-2';
</script>

README

react-medium-editor-2

React wrapper to medium editor js library

NPM JavaScript Style Guide

Install

npm install --save react-medium-editor-2

Then install the mandatory editor scripts

<script src="//cdn.jsdelivr.net/npm/medium-editor@latest/dist/js/medium-editor.min.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/medium-editor@latest/dist/css/medium-editor.min.css" type="text/css" media="screen" charset="utf-8">

Usage

import React, { Component } from 'react'

import Editor from 'react-medium-editor-2'

function Component {
    return (
      <Editor className="unique_and_mandatory_class_name"/>
    )
}

License

MIT © aesher9o1