prosemirror-paste-rules
Better handling of pasted content in your prosemirror editor.
Last updated a year ago by ifiokjr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install prosemirror-paste-rules 
SYNC missed versions from official npm registry.

prosemirror-paste-rules

Better handling of pasted content in the editor.

Version Weekly Downloads Bundled size Typed Codebase MIT License


The problem

You want to automatically transform pasted content within your editor into nodes marks, or different text.

This solution

prosemirror-paste-rules allows the transformation of plain text pasted content into marks and nodes.


Installation

# yarn
yarn add prosemirror-paste-rules prosemirror-view prosemirror-state prosemirror-keymap

# pnpm
pnpm add prosemirror-paste-rules prosemirror-view prosemirror-state prosemirror-keymap

# npm
npm install prosemirror-paste-rules prosemirror-view prosemirror-state prosemirror-keymap

The installation requires the installation of the peer dependencies prosemirror-view, prosemirror-state and prosemirror-model to avoid version clashes.


Getting Started

import { paste } from 'prosemirror-paste-rules';
import { schema } from 'prosemirror-schema-basic';

// Include the plugin in the created editor state.
const state = EditorState.create({
  schema,
  plugins: [paste([])],
});

Current Tags

  • 3.0.0-beta.6                                ...           beta (4 months ago)
  • 3.0.0                                ...           latest (4 months ago)
  • 0.0.0-pr1031.1                                ...           pr1031 (3 years ago)
  • 0.0.0-pr1102.1                                ...           pr1102 (3 years ago)
  • 0.0.0-pr1158.1                                ...           pr1158 (3 years ago)
  • 0.0.0-pr1161.2                                ...           pr1161 (3 years ago)
  • 0.0.0-pr1174.1                                ...           pr1174 (3 years ago)
  • 0.0.0-pr1242.4                                ...           pr1242 (3 years ago)
  • 0.0.0-pr1305.1                                ...           pr1305 (3 years ago)
  • 0.0.0-pr1310.1                                ...           pr1310 (3 years ago)
  • 0.0.0-pr1340.1                                ...           pr1340 (3 years ago)
  • 0.0.0-pr1344.1                                ...           pr1344 (3 years ago)
  • 0.0.0-pr1365.1                                ...           pr1365 (3 years ago)
  • 0.0.0-pr1367.1                                ...           pr1367 (3 years ago)
  • 0.0.0-pr1392.1                                ...           pr1392 (3 years ago)
  • 0.0.0-pr1452.1                                ...           pr1452 (3 years ago)
  • 0.0.0-pr1463.1                                ...           pr1463 (3 years ago)
  • 0.0.0-pr1496.1                                ...           pr1496 (3 years ago)
  • 0.0.0-pr1532.1                                ...           pr1532 (3 years ago)
  • 0.0.0-pr1545.1                                ...           pr1545 (3 years ago)
  • 0.0.0-pr1549.1                                ...           pr1549 (3 years ago)
  • 0.0.0-pr1552.3                                ...           pr1552 (3 years ago)
  • 0.0.0-pr1558.1                                ...           pr1558 (3 years ago)
  • 0.0.0-pr1581.3                                ...           pr1581 (3 years ago)
  • 0.0.0-pr1586.1                                ...           pr1586 (3 years ago)
  • 0.0.0-pr1608.1                                ...           pr1608 (3 years ago)
  • 0.0.0-pr1629.1                                ...           pr1629 (3 years ago)
  • 0.0.0-pr1654.1                                ...           pr1654 (2 years ago)
  • 0.0.0-pr1713.12                                ...           pr1713 (2 years ago)
  • 0.0.0-pr1801.3                                ...           pr1801 (2 years ago)
  • 0.0.0-pr1862.1                                ...           pr1862 (2 years ago)
  • 0.0.0-pr1873.1                                ...           pr1873 (2 years ago)
  • 0.0.0-pr1879.1                                ...           pr1879 (2 years ago)
  • 0.0.0-pr1881.2                                ...           pr1881 (2 years ago)
  • 0.0.0-pr1885.1                                ...           pr1885 (2 years ago)
  • 0.0.0-pr1887.1                                ...           pr1887 (2 years ago)
  • 0.0.0-pr1922.2                                ...           pr1922 (2 years ago)
  • 0.0.0-pr1938.1                                ...           pr1938 (2 years ago)
  • 0.0.0-pr1942.1                                ...           pr1942 (2 years ago)
  • 0.0.0-pr1948.1                                ...           pr1948 (2 years ago)
  • 0.0.0-pr1966.1                                ...           pr1966 (2 years ago)
  • 0.0.0-pr2100.1                                ...           pr2100 (a year ago)
  • 0.0.0-pr2118.1                                ...           pr2118 (a year ago)
  • 0.0.0-pr2128.4                                ...           pr2128 (a year ago)
  • 0.0.0-pr2156.1                                ...           pr2156 (a year ago)
  • 0.0.0-pr2166.4                                ...           pr2166 (a year ago)
  • 0.0.0-pr2169.2                                ...           pr2169 (a year ago)
  • 0.0.0-pr2222.1                                ...           pr2222 (a year ago)
  • 0.0.0-pr2223.1                                ...           pr2223 (a year ago)
  • 0.0.0-pr2271.2                                ...           pr2271 (4 months ago)
  • 0.0.0-pr706.36                                ...           pr706 (3 years ago)
  • 0.0.0-pr862.2                                ...           pr862 (4 years ago)
  • 0.0.0-pr877.9                                ...           pr877 (4 years ago)
  • 0.0.0-pr885.1                                ...           pr885 (4 years ago)
  • 0.0.0-pr901.1                                ...           pr901 (4 years ago)
  • 0.0.0-pr905.4                                ...           pr905 (4 years ago)
  • 0.0.0-pr911.2                                ...           pr911 (4 years ago)
  • 0.0.0-pr919.2                                ...           pr919 (4 years ago)
  • 0.0.0-pr920.1                                ...           pr920 (4 years ago)
  • 0.0.0-pr922.1                                ...           pr922 (4 years ago)
  • 0.0.0-pr930.1                                ...           pr930 (4 years ago)
  • 0.0.0-pr941.2                                ...           pr941 (4 years ago)
  • 0.0.0-pr950.7                                ...           pr950 (3 years ago)
  • 0.0.0-pr956.1                                ...           pr956 (3 years ago)
  • 0.0.0-pr959.1                                ...           pr959 (3 years ago)
  • 0.0.0-pr960.1                                ...           pr960 (3 years ago)
  • 0.0.0-pr963.1                                ...           pr963 (3 years ago)
  • 0.0.0-pr965.1                                ...           pr965 (3 years ago)
  • 0.0.0-pr993.1                                ...           pr993 (3 years ago)
  • 0.0.0-pr997.1                                ...           pr997 (3 years ago)

212 Versions

  • 3.0.0                                ...           4 months ago
  • 3.0.0-beta.6                                ...           4 months ago
  • 3.0.0-beta.5                                ...           4 months ago
  • 3.0.0-beta.4                                ...           4 months ago
  • 0.0.0-pr2271.2                                ...           4 months ago
  • 0.0.0-pr2271.1                                ...           4 months ago
  • 2.0.8                                ...           4 months ago
  • 0.0.0-pr2222.1                                ...           a year ago
  • 0.0.0-pr2223.1                                ...           a year ago
  • 3.0.0-beta.3                                ...           a year ago
  • 3.0.0-beta.2                                ...           a year ago
  • 0.0.0-pr2169.2                                ...           a year ago
  • 3.0.0-beta.1                                ...           a year ago
  • 0.0.0-pr2169.1                                ...           a year ago
  • 3.0.0-beta.0                                ...           a year ago
  • 0.0.0-pr2166.4                                ...           a year ago
  • 0.0.0-pr2166.3                                ...           a year ago
  • 0.0.0-pr2166.2                                ...           a year ago
  • 0.0.0-pr2166.1                                ...           a year ago
  • 0.0.0-pr2156.1                                ...           a year ago
  • 2.0.7                                ...           a year ago
  • 2.0.6                                ...           a year ago
  • 0.0.0-pr2128.4                                ...           a year ago
  • 0.0.0-pr2128.3                                ...           a year ago
  • 0.0.0-pr2128.2                                ...           a year ago
  • 0.0.0-pr2128.1                                ...           a year ago
  • 0.0.0-pr2118.1                                ...           a year ago
  • 0.0.0-pr2100.1                                ...           a year ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 0.0.0-pr1966.1                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 0.0.0-pr1948.1                                ...           2 years ago
  • 0.0.0-pr1942.1                                ...           2 years ago
  • 0.0.0-pr1938.1                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 0.0.0-pr1922.2                                ...           2 years ago
  • 0.0.0-pr1922.1                                ...           2 years ago
  • 0.0.0-pr1887.1                                ...           2 years ago
  • 0.0.0-pr1885.1                                ...           2 years ago
  • 0.0.0-pr1881.2                                ...           2 years ago
  • 0.0.0-pr1881.1                                ...           2 years ago
  • 0.0.0-pr1879.1                                ...           2 years ago
  • 0.0.0-pr1873.1                                ...           2 years ago
  • 0.0.0-pr1862.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-beta.19                                ...           2 years ago
  • 2.0.0-beta.18                                ...           2 years ago
  • 2.0.0-beta.17                                ...           2 years ago
  • 2.0.0-beta.16                                ...           2 years ago
  • 2.0.0-beta.15                                ...           2 years ago
  • 2.0.0-beta.14                                ...           2 years ago
  • 2.0.0-beta.13                                ...           2 years ago
  • 0.0.0-pr1801.3                                ...           2 years ago
  • 0.0.0-pr1801.2                                ...           2 years ago
  • 0.0.0-pr1801.1                                ...           2 years ago
  • 2.0.0-beta.12                                ...           2 years ago
  • 2.0.0-beta.11                                ...           2 years ago
  • 2.0.0-beta.10                                ...           2 years ago
  • 2.0.0-beta.9                                ...           2 years ago
  • 2.0.0-beta.8                                ...           2 years ago
  • 2.0.0-beta.7                                ...           2 years ago
  • 2.0.0-beta.6                                ...           2 years ago
  • 2.0.0-beta.5                                ...           2 years ago
  • 2.0.0-beta.4                                ...           2 years ago
  • 2.0.0-beta.3                                ...           2 years ago
  • 2.0.0-beta.2                                ...           2 years ago
  • 2.0.0-beta.1                                ...           2 years ago
  • 0.0.0-pr1713.12                                ...           2 years ago
  • 0.0.0-pr1713.11                                ...           2 years ago
  • 0.0.0-pr1713.10                                ...           2 years ago
  • 0.0.0-pr1713.9                                ...           2 years ago
  • 0.0.0-pr1713.8                                ...           2 years ago
  • 0.0.0-pr1713.7                                ...           2 years ago
  • 0.0.0-pr1713.6                                ...           2 years ago
  • 0.0.0-pr1713.5                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 0.0.0-pr1713.4                                ...           2 years ago
  • 0.0.0-pr1713.3                                ...           2 years ago
  • 0.0.0-pr1713.2                                ...           2 years ago
  • 0.0.0-pr1713.1                                ...           2 years ago
  • 2.0.0-beta.0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 0.0.0-pr1654.1                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 0.0.0-pr1629.1                                ...           3 years ago
  • 0.0.0-pr1581.3                                ...           3 years ago
  • 0.0.0-pr1581.2                                ...           3 years ago
  • 0.0.0-pr1581.1                                ...           3 years ago
  • 0.0.0-pr1608.1                                ...           3 years ago
  • 0.0.0-pr1586.1                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 0.0.0-pr1558.1                                ...           3 years ago
  • 0.0.0-pr1552.3                                ...           3 years ago
  • 0.0.0-pr1552.2                                ...           3 years ago
  • 0.0.0-pr1552.1                                ...           3 years ago
  • 0.0.0-pr1549.1                                ...           3 years ago
  • 0.0.0-pr1545.1                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 0.0.0-pr1532.1                                ...           3 years ago
  • 0.0.0-pr1496.1                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 0.0.0-pr1463.1                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 0.0.0-pr1452.1                                ...           3 years ago
  • 0.0.0-pr1392.1                                ...           3 years ago
  • 0.0.0-pr1367.1                                ...           3 years ago
  • 0.0.0-pr1365.1                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 0.0.0-pr1344.1                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 0.0.0-pr1340.1                                ...           3 years ago
  • 0.0.0-pr1310.1                                ...           3 years ago
  • 0.0.0-pr1305.1                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 0.0.0-pr1242.4                                ...           3 years ago
  • 0.0.0-pr1242.3                                ...           3 years ago
  • 0.0.0-pr1242.2                                ...           3 years ago
  • 0.0.0-pr1242.1                                ...           3 years ago
  • 0.0.0-pr1174.1                                ...           3 years ago
  • 0.0.0-pr1161.2                                ...           3 years ago
  • 0.0.0-pr1161.1                                ...           3 years ago
  • 0.0.0-pr1158.1                                ...           3 years ago
  • 0.0.0-pr1102.1                                ...           3 years ago
  • 0.0.0-pr1031.1                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.0-pr706.36                                ...           3 years ago
  • 0.0.0-pr997.1                                ...           3 years ago
  • 0.0.0-pr993.1                                ...           3 years ago
  • 0.0.0-pr706.35                                ...           3 years ago
  • 0.0.0-pr706.34                                ...           3 years ago
  • 0.0.0-pr706.33                                ...           3 years ago
  • 0.0.0-pr706.32                                ...           3 years ago
  • 0.0.0-pr950.7                                ...           3 years ago
  • 0.0.0-pr950.6                                ...           3 years ago
  • 0.0.0-pr950.5                                ...           3 years ago
  • 0.0.0-pr706.31                                ...           3 years ago
  • 0.0.0-pr706.30                                ...           3 years ago
  • 0.0.0-pr706.29                                ...           3 years ago
  • 0.0.0-pr965.1                                ...           3 years ago
  • 0.0.0-pr963.1                                ...           3 years ago
  • 0.0.0-pr706.28                                ...           3 years ago
  • 0.0.0-pr960.1                                ...           3 years ago
  • 0.0.0-pr959.1                                ...           3 years ago
  • 0.0.0-pr950.4                                ...           3 years ago
  • 0.0.0-pr956.1                                ...           3 years ago
  • 0.0.0-pr950.3                                ...           3 years ago
  • 0.0.0-pr706.27                                ...           3 years ago
  • 0.0.0-pr950.2                                ...           3 years ago
  • 0.0.0-pr950.1                                ...           3 years ago
  • 0.0.0-pr706.26                                ...           4 years ago
  • 0.0.0-pr706.25                                ...           4 years ago
  • 0.0.0-pr706.24                                ...           4 years ago
  • 0.0.0-pr706.23                                ...           4 years ago
  • 0.0.0-pr706.22                                ...           4 years ago
  • 0.0.0-pr941.2                                ...           4 years ago
  • 0.0.0-pr941.1                                ...           4 years ago
  • 0.0.0-pr706.21                                ...           4 years ago
  • 0.0.0-pr706.20                                ...           4 years ago
  • 0.0.0-pr930.1                                ...           4 years ago
  • 0.0.0-pr706.19                                ...           4 years ago
  • 0.0.0-pr922.1                                ...           4 years ago
  • 0.0.0-pr706.18                                ...           4 years ago
  • 0.0.0-pr905.4                                ...           4 years ago
  • 0.0.0-pr905.3                                ...           4 years ago
  • 0.0.0-pr920.1                                ...           4 years ago
  • 0.0.0-pr706.17                                ...           4 years ago
  • 0.0.0-pr919.2                                ...           4 years ago
  • 0.0.0-pr919.1                                ...           4 years ago
  • 0.0.0-pr706.16                                ...           4 years ago
  • 0.0.0-pr911.2                                ...           4 years ago
  • 0.0.0-pr905.2                                ...           4 years ago
  • 0.0.0-pr911.1                                ...           4 years ago
  • 0.0.0-pr706.15                                ...           4 years ago
  • 0.0.0-pr877.9                                ...           4 years ago
  • 0.0.0-pr877.8                                ...           4 years ago
  • 0.0.0-pr905.1                                ...           4 years ago
  • 0.0.0-pr877.7                                ...           4 years ago
  • 0.0.0-pr706.14                                ...           4 years ago
  • 0.0.0-pr901.1                                ...           4 years ago
  • 0.0.0-pr877.6                                ...           4 years ago
  • 0.0.0-pr706.13                                ...           4 years ago
  • 0.0.0-pr877.5                                ...           4 years ago
  • 0.0.0-pr877.4                                ...           4 years ago
  • 0.0.0-pr706.12                                ...           4 years ago
  • 0.0.0-pr877.3                                ...           4 years ago
  • 0.0.0-pr706.11                                ...           4 years ago
  • 0.0.0-pr885.1                                ...           4 years ago
  • 0.0.0-pr877.2                                ...           4 years ago
  • 0.0.0-pr706.10                                ...           4 years ago
  • 0.0.0-pr877.1                                ...           4 years ago
  • 0.0.0-pr706.9                                ...           4 years ago
  • 0.0.0-pr706.8                                ...           4 years ago
  • 0.0.0-pr706.7                                ...           4 years ago
  • 0.0.0-pr706.6                                ...           4 years ago
  • 0.0.0-pr706.5                                ...           4 years ago
  • 0.0.0-pr706.4                                ...           4 years ago
  • 0.0.0-pr706.3                                ...           4 years ago
  • 0.0.0-pr862.2                                ...           4 years ago
  • 0.0.0-pr862.1                                ...           4 years ago
  • 0.0.0-pr706.2                                ...           4 years ago
  • 0.0.0-pr706.1                                ...           4 years ago
  • 0.0.0-pr706.8fe0e466c                                ...           4 years ago
  • 0.0.0-pr706.5d63815ad                                ...           4 years ago
  • 0.0.0-pr706.d0b3ea524                                ...           4 years ago
  • 0.0.0-pr706                                ...           4 years ago
Maintainers (1)
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE