Socket
Socket
Sign inDemoInstall

@remirror/extension-epic-mode

Package Overview
Dependencies
3
Maintainers
2
Versions
317
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @remirror/extension-epic-mode

Epic (power) mode extension for the remirror wysiwyg editor.


Version published
Weekly downloads
27K
decreased by-12.6%
Maintainers
2
Install size
18.1 MB
Created
Weekly downloads
 

Readme

Source

@remirror/extension-epic-mode

Epic (power) mode extension for the remirror wysiwyg editor.

Version Weekly Downloads Bundled size Typed Codebase MIT License

Installation

yarn add @remirror/extension-epic-mode # yarn
pnpm add @remirror/extension-epic-mode # pnpm
npm install @remirror/extension-epic-mode # npm

This is included by default when you install the recommended remirror package. All exports are also available via the entry-point, remirror/extensions.

Usage

The following code sample will create a limited editor and run the available commands from this extension.

import { ExtensionPriority, RemirrorManager } from 'remirror';
import { CorePreset, EpicModeExtension } from 'remirror/extensions';

// Create the codeBlock extension
const epicModeExtension = new EpicModeExtension();
const corePreset = new CorePreset();

// Create the Editor Manager with the codeBlock extension passed through.
const manager = RemirrorManager.create([epicModeExtension, corePreset]);

// Pass the dom element to the editor. If you are using `@remirror/react` or
// other framework wrappers then this is handled for you.
const element = document.createElement('div');
document.body.append(element);

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

// Make the epic mode extension active.
epicModeExtension.setOptions({ active: true });

Keywords

FAQs

Last updated on 26 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc