Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@tiptap/extension-ordered-list
Advanced tools
@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.
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();
prosemirror-schema-list is a ProseMirror schema extension that provides list node types and commands for working with ordered and unordered lists. It offers similar functionalities to @tiptap/extension-ordered-list but is designed for use with the ProseMirror editor directly, rather than the Tiptap framework.
Quill is a modern WYSIWYG editor that includes built-in support for ordered lists. It offers similar functionalities to @tiptap/extension-ordered-list but is a standalone editor with its own set of features and extensions.
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.
Documentation can be found on the Tiptap website.
Tiptap is open sourced software licensed under the MIT license.
2.2.1 (2024-01-31)
Note: Version bump only for package tiptap
FAQs
ordered list extension for tiptap
The npm package @tiptap/extension-ordered-list receives a total of 804,070 weekly downloads. As such, @tiptap/extension-ordered-list popularity was classified as popular.
We found that @tiptap/extension-ordered-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.