Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
prosemirror-schema-list
Advanced tools
The prosemirror-schema-list package provides schema elements and commands for working with lists in ProseMirror, a toolkit for building rich-text editors. It allows you to define ordered and unordered lists, and provides commands to manipulate these lists within the editor.
Define List Item Schema
This feature allows you to define a list item schema node, which can be used to create list items in the editor.
const { schema } = require('prosemirror-schema-list');
const listItem = schema.nodes.list_item;
Define Ordered List Schema
This feature allows you to define an ordered list schema node, which can be used to create ordered lists in the editor.
const { schema } = require('prosemirror-schema-list');
const orderedList = schema.nodes.ordered_list;
Define Bullet List Schema
This feature allows you to define a bullet list schema node, which can be used to create unordered lists in the editor.
const { schema } = require('prosemirror-schema-list');
const bulletList = schema.nodes.bullet_list;
Wrap in List Command
This feature provides a command to wrap the selected text in a list, making it easy to convert text into a list format.
const { wrapInList } = require('prosemirror-schema-list');
const command = wrapInList(schema.nodes.bullet_list);
Lift List Item Command
This feature provides a command to lift a list item out of its parent list, useful for changing the nesting level of list items.
const { liftListItem } = require('prosemirror-schema-list');
const command = liftListItem(schema.nodes.list_item);
Sink List Item Command
This feature provides a command to sink a list item into a nested list, useful for creating sub-lists.
const { sinkListItem } = require('prosemirror-schema-list');
const command = sinkListItem(schema.nodes.list_item);
The prosemirror-schema-basic package provides a basic schema for ProseMirror, including paragraphs, headings, and lists. It is more general-purpose compared to prosemirror-schema-list, which is specifically focused on list functionality.
The prosemirror-schema-table package provides schema elements and commands for working with tables in ProseMirror. While it focuses on table functionality, it complements prosemirror-schema-list by providing additional rich-text editing capabilities.
The prosemirror-commands package provides a set of basic editor commands for ProseMirror, including commands for manipulating lists. It offers a broader range of commands beyond just list manipulation, making it a more comprehensive solution for editor commands.
[ WEBSITE | ISSUES | FORUM | GITTER | CHANGELOG ]
This is a schema module for ProseMirror. ProseMirror is a well-behaved rich semantic content editor based on contentEditable, with support for collaborative editing and custom document schemas.
This module exports schema elements and commands for including lists in a ProseMirror editor.
The project page has more information, a number of examples and the documentation.
This code is released under an MIT license. There's a forum for general discussion and support requests, and the Github bug tracker is the place to report issues.
We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.
1.1.5 (2021-07-06)
Fix an issue where splitListItem
would delete content when activated in a sublist that had content directly after it.
FAQs
List-related schema elements and commands for ProseMirror
The npm package prosemirror-schema-list receives a total of 1,218,093 weekly downloads. As such, prosemirror-schema-list popularity was classified as popular.
We found that prosemirror-schema-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.