Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-trailing-node

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-trailing-node - npm Package Compare versions

Comparing version 2.0.0-beta.12 to 2.0.0-beta.13

9

package.json
{
"name": "prosemirror-trailing-node",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "A trailing node plugin for the prosemirror editor.",

@@ -34,4 +34,4 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/prosemirror-trailing-node",

"@babel/runtime": "^7.13.10",
"@remirror/core-constants": "^2.0.0-beta.12",
"@remirror/core-helpers": "^2.0.0-beta.12",
"@remirror/core-constants": "^2.0.0-beta.13",
"@remirror/core-helpers": "^2.0.0-beta.13",
"escape-string-regexp": "^4.0.0"

@@ -55,3 +55,4 @@ },

"sizeLimit": "10 KB"
}
},
"readme": "# prosemirror-trailing-node\n\n> \"A trailing node plugin for the prosemirror editor.\n\n[![Version][version]][npm] [![Weekly Downloads][downloads-badge]][npm] [![Bundled size][size-badge]][size] [![Typed Codebase][typescript]](#) [![MIT License][license]](#)\n\n[version]: https://flat.badgen.net/npm/v/prosemirror-trailing-node\n[npm]: https://npmjs.com/package/prosemirror-trailing-node\n[license]: https://flat.badgen.net/badge/license/MIT/purple\n[size]: https://bundlephobia.com/result?p=prosemirror-trailing-node\n[size-badge]: https://flat.badgen.net/bundlephobia/minzip/prosemirror-trailing-node\n[typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label\n[downloads-badge]: https://badgen.net/npm/dw/prosemirror-trailing-node/red?icon=npm\n\n<br />\n\n## The problem\n\nYou want your editor to always have allow exiting the current non-empty node.\n\n## This solution\n\n`prosemirror-trailing-node` allows you to set a default node that will be appended to the end of the document.\n\n<br />\n\n## Installation\n\n```bash\n# yarn\nyarn add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap\n\n# pnpm\npnpm add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap\n\n# npm\nnpm install prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap\n```\n\nThe installation requires the installation of the peer dependencies `prosemirror-view`, `prosemirror-state` and `prosemirror-model` to avoid version clashes.\n\n<br />\n\n## Getting Started\n\n```ts\nimport { schema } from 'prosemirror-schema-basic';\nimport { trailingNode } from 'prosemirror-trailing-node';\n\n// Include the plugin in the created editor state.\nconst state = EditorState.create({\n schema,\n plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })],\n});\n```\n"
}
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