react-classic-wysiwyg-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.9-alpha • Public • Published

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:

Readme

Keywords

Package Sidebar

Install

npm i react-classic-wysiwyg-editor

Weekly Downloads

0

Version

1.0.9-alpha

License

MIT

Unpacked Size

177 kB

Total Files

13

Last publish

Collaborators

  • the_devnextdoor