Socket
Socket
Sign inDemoInstall

@aeaton/react-prosemirror

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aeaton/react-prosemirror

A React component for ProseMirror


Version published
Weekly downloads
1.4K
decreased by-22.31%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install @aeaton/react-prosemirror --save

or

yarn add @aeaton/react-prosemirror

Usage

Use npm run styleguide to see live examples in the styleguide.

Example usage, using prosemirror-example-setup to provide a menu bar, keymaps, etc:

import React from 'react'
import { HtmlEditor } from '@aeaton/react-prosemirror'
import { schema } from 'prosemirror-schema-basic'
import { exampleSetup } from 'prosemirror-example-setup'

import 'prosemirror-menu/style/menu.css'
import 'prosemirror-example-setup/style/style.css'

const plugins = exampleSetup({ schema, floatingMenu: false })

const Editor = ({ value, onChange }) => (
  <HtmlEditor
    schema={schema}
    plugins={plugins}
    value={value}
    onChange={onChange}
  />
)

export default Editor

FAQs

Package last updated on 30 Oct 2017

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