1.0.9-alpha • Published 12 months ago

react-classic-wysiwyg-editor v1.0.9-alpha

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

react-classic-wysiwyg-editor

NPM JavaScript Style Guide

This is a simple classic wysiwyg (What-You-See-Is-What-You-Get) editor for react.

react-classic-wysiwyg-editor

Install

npm install react-classic-wysiwyg-editor

Usage

import { useState } from 'react'
import { Editor } from 'react-classic-wysiwyg-editor'
import 'react-classic-wysiwyg-editor/dist/index.css'

const Example = () => {
  const [content, setContent] = useState('')
  return (
    <>
      <h1>WYSIWYG Editor</h1>
      <Editor setContent={setContent} />
      <h2>Saved Content:</h2>
      {content && <div dangerouslySetInnerHTML={{ __html: content }}></div>}
    </>
  )
}

Live Playground

For examples of the react-classic-wysiwyg-editor in action, go to demo

OR

To run that demo on your own computer:

1.0.3-alpha

12 months ago

1.0.8-alpha

12 months ago

1.0.5-alpha

12 months ago

1.0.9-alpha

12 months ago

1.0.4-alpha

12 months ago

1.0.7-alpha

12 months ago

1.0.1-alpha

1 year ago

1.0.0

1 year ago