Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-simple-wysiwyg

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-wysiwyg

Simple and lightweight React WYSIWYG editor

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15K
decreased by-12.14%
Maintainers
1
Weekly downloads
 
Created
Source

react-simple-wysiwyg

Build Status NPM version Dependencies status npm bundle size

Simple and lightweight React WYSIWYG editor. Demo.

Description

The project is in alpha stage.

Screenshot

It can be helpful if you only need basic text operations. It's:

  • pretty small (~10kb, ~4kb gzipped)
  • fast
  • simple to configure
  • simple to extend

Of course, it's not so powerful as other complex editors. It DOES NOT:

  • ✗ change HTML generated by browser (sometimes it can be too dirty)
  • ✗ sanitize HTML (you can use sanitize-html)
  • ✗ contain a lot of feature as others (like table editor, image editor and so on)
  • ✗ support old browser

If you need more powerful solution for React, you'd better take a look at:

Usage

  1. Install with npm:

    npm install react-simple-wysiwyg

    or CDN (unpkg.com)

    <script src="//unpkg.com/react-simple-wysiwyg"></script>

  2. Use it you React component

    import { DefaultEditor } from 'react-simple-wysiwyg';
    
    function App() {
      const [html, setHtml] = React.useState('my <b>HTML</b>');
      
      const onChange = (e) => {
        setHtml(e.target.value);
      };
    
      return (
        <DefaultEditor value={html} onChange={onChange} />
      );
    }
    

Credits

Keywords

FAQs

Package last updated on 10 May 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc