New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@remirror/preset-core

Package Overview
Dependencies
Maintainers
1
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/preset-core

The core preset providing the functionality you need and want.

  • 1.0.0-next.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
47K
decreased by-0.96%
Maintainers
1
Weekly downloads
 
Created
Source

@remirror/preset-core

The core preset providing the functionality you need and want.

Version Weekly Downloads Bundled size Typed Codebase MIT License


Installation

yarn add @remirror/preset-core@next # yarn
pnpm add @remirror/preset-core@next # pnpm
npm install @remirror/preset-core@next # npm

Usage

When added to your editor it will provide the required nodes, marks to your editor.

import { RemirrorManager } from '@remirror/core';
import { CorePreset } from '@remirror/preset-core';

// Create the preset
const corePreset = new CorePreset({ rootContent: 'block*' });

// Create the Editor Manager with the required preset.
const manager = RemirrorManager.create([corePreset]);

// Pass the dom element to the editor. If you are using `@remirror/react` this is done for you.
const element = document.createElement('div');
document.body.appendChild(element);

// Add the view to the editor manager.
manager.addView(element);

// You now have a basic working editor.

Granted, the above won't do much. It will allow you to type, and what else do you really need from an editor.

Credits

This package was bootstrapped with monots.

Keywords

FAQs

Package last updated on 28 Jul 2020

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