REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.76 KB
Close
/home/byroehnu/.trash/node_modules11/prosemirror-trailing-node/readme.md
Text
Base64
# prosemirror-trailing-node > "A trailing node plugin for the prosemirror editor. [![Version][version]][npm] [![Weekly Downloads][downloads-badge]][npm] [![Bundled size][size-badge]][size] [![Typed Codebase][typescript]](#) [![MIT License][license]](#) [version]: https://flat.badgen.net/npm/v/prosemirror-trailing-node [npm]: https://npmjs.com/package/prosemirror-trailing-node [license]: https://flat.badgen.net/badge/license/MIT/purple [size]: https://bundlephobia.com/result?p=prosemirror-trailing-node [size-badge]: https://flat.badgen.net/bundlephobia/minzip/prosemirror-trailing-node [typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label [downloads-badge]: https://badgen.net/npm/dw/prosemirror-trailing-node/red?icon=npm <br /> ## The problem You want your editor to always have allow exiting the current non-empty node. ## This solution `prosemirror-trailing-node` allows you to set a default node that will be appended to the end of the document. <br /> ## Installation ```bash # yarn yarn add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap # pnpm pnpm add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap # npm npm install prosemirror-trailing-node 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. <br /> ## Getting Started ```ts import { schema } from 'prosemirror-schema-basic'; import { trailingNode } from 'prosemirror-trailing-node'; // Include the plugin in the created editor state. const state = EditorState.create({ schema, plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })], }); ```
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
dist
DIR
-
drwxr-xr-x
2026-02-28 00:27:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dist-types
DIR
-
drwxr-xr-x
2026-02-28 00:27:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.06 KB
lrw-r--r--
2026-02-28 00:28:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.42 KB
lrw-r--r--
2026-02-28 00:27:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.md
1.76 KB
lrw-r--r--
2026-02-28 00:27:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).