@remirror/extension-file

Add files to your editor.

Usage no npm install needed!

<script type="module">
  import remirrorExtensionFile from 'https://cdn.skypack.dev/@remirror/extension-file';
</script>

README

@remirror/extension-file

Add files to your editor.

Version Weekly Downloads Bundled size Typed Codebase MIT License

Beta

Note this extension is in beta, so its API may change without a bump to the major semver version.

Installation

yarn add @remirror/extension-file # yarn
pnpm add @remirror/extension-file # pnpm
npm install @remirror/extension-file # npm

This is NOT included by default when you install the recommended remirror package.

import { FileExtension } from '@remirror/extension-file';

The extension is provided by the @remirror/extension-file package.

Usage

The following code creates an instance of this extension.

import { DropCursorExtension } from 'remirror/extensions';
import { FileExtension } from '@remirror/extension-file';

const extension = new FileExtension();