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

prosemirror-schema-list

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-schema-list

List-related schema elements and commands for ProseMirror

  • 1.2.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is prosemirror-schema-list?

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.

What are prosemirror-schema-list's main functionalities?

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);

Other packages similar to prosemirror-schema-list

FAQs

Package last updated on 17 May 2023

Did you know?

Socket

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.

Install

Related posts

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