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

@tiptap/extension-ordered-list

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-ordered-list

ordered list extension for tiptap

  • 2.0.0-beta.21
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1M
decreased by-8.46%
Maintainers
2
Weekly downloads
 
Created

What is @tiptap/extension-ordered-list?

@tiptap/extension-ordered-list is an extension for the Tiptap editor that allows users to create and manage ordered lists within their rich text content. It provides a set of functionalities to easily integrate ordered lists into the Tiptap editor, making it simple to add, edit, and manipulate ordered lists in a structured and user-friendly manner.

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

Add Ordered List

This feature allows you to add an ordered list to the Tiptap editor. By importing the OrderedList extension and including it in the editor's extensions, you can use the `toggleOrderedList` command to add an ordered list to the editor content.

import OrderedList from '@tiptap/extension-ordered-list';

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

editor.chain().focus().toggleOrderedList().run();

Toggle Ordered List

This feature allows you to toggle an ordered list on and off within the editor. The `toggleOrderedList` command can be used to switch between an ordered list and regular text.

editor.chain().focus().toggleOrderedList().run();

Set Ordered List Attributes

This feature allows you to set attributes for the ordered list, such as the starting number. The `setOrderedList` command can be used to customize the ordered list's attributes.

editor.chain().focus().setOrderedList({ start: 3 }).run();

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

Keywords

FAQs

Package last updated on 31 Oct 2021

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