Socket
Socket
Sign inDemoInstall

@tiptap/extension-list-item

Package Overview
Dependencies
Maintainers
4
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-list-item

list item extension for tiptap


Version published
Weekly downloads
864K
decreased by-4.25%
Maintainers
4
Weekly downloads
 
Install size
Created

Package description

What is @tiptap/extension-list-item?

@tiptap/extension-list-item is an extension for the Tiptap editor that provides functionality for working with list items. It allows you to create, manipulate, and manage list items within your rich text editor, supporting both ordered and unordered lists.

What are @tiptap/extension-list-item's main functionalities?

Creating List Items

This code demonstrates how to include the ListItem extension in a Tiptap editor instance, enabling the creation of list items.

import { ListItem } from '@tiptap/extension-list-item';

const editor = new Editor({
  extensions: [
    ListItem,
  ],
});

Nested List Items

This code shows how to initialize the editor with nested list items, demonstrating the extension's capability to handle nested lists.

import { ListItem } from '@tiptap/extension-list-item';

const editor = new Editor({
  extensions: [
    ListItem,
  ],
  content: '<ul><li>Item 1<ul><li>Nested Item 1</li></ul></li></ul>',
});

Toggling List Items

This code snippet demonstrates how to toggle a list item using the chainable commands provided by Tiptap.

import { ListItem } from '@tiptap/extension-list-item';

const editor = new Editor({
  extensions: [
    ListItem,
  ],
});

// Toggle a list item
editor.chain().focus().toggleListItem().run();

Other packages similar to @tiptap/extension-list-item

Changelog

Source

2.1.13 (2023-11-30)

Bug Fixes

  • react: fix performance regression because of select/deselect (#4661) (ad7f659)

Readme

Source

@tiptap/extension-list-item

Version Downloads License Sponsor

Introduction

Tiptap is a headless wrapper around ProseMirror – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.

Official Documentation

Documentation can be found on the Tiptap website.

License

Tiptap is open sourced software licensed under the MIT license.

Keywords

FAQs

Package last updated on 30 Nov 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc