@remirror/dev
TypeScript icon, indicating that this package has built-in type declarations

2.0.18 • Public • Published

@remirror/dev

npm bundle size (scoped) npm

Development tools to make life easier when building your editor.

Installation

yarn add @remirror/dev# yarn
pnpm add @remirror/dev# pnpm
npm install @remirror/dev# npm

Usage

For in depth usage with proper code example see the docs

Prosemirror Dev Tools

The following will render the development view in your editor. For more information on what's possible see the docs.

import React from 'react';
import { BoldExtension } from 'remirror/extension/bold';
import { ItalicExtension } from 'remirror/extension/italic';
import { UnderlineExtension } from 'remirror/extension/underline';
import { ProsemirrorDevTools } from '@remirror/dev';
import { Remirror, useRemirror } from '@remirror/react';

const Editor = () => {
  const manager = useRemirror({
    extensions: () => [new BoldExtension(), new ItalicExtension(), new UnderlineExtension()],
  });

  return (
    <Remirror manager={manager} autoRender={true}>
      <ProsemirrorDevTools />
    </Remirror>
  );
};

Readme

Keywords

none

Package Sidebar

Install

npm i @remirror/dev

Weekly Downloads

215

Version

2.0.18

License

MIT

Unpacked Size

75.7 kB

Total Files

10

Last publish

Collaborators

  • ocavue
  • ifiokjr