Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@tiptap/extension-bullet-list
Advanced tools
@tiptap/extension-bullet-list is an extension for the Tiptap editor that allows users to create and manage bullet lists within their rich text content. It provides a straightforward way to add, edit, and manipulate bullet lists, making it easier to organize content in a structured manner.
Add Bullet List
This feature allows you to add a bullet list to your Tiptap editor. The code initializes the editor with the BulletList extension and then toggles the bullet list on the focused editor.
import { BulletList } from '@tiptap/extension-bullet-list';
const editor = new Editor({
extensions: [
BulletList,
],
});
editor.chain().focus().toggleBulletList().run();
Toggle Bullet List
This feature allows you to toggle a bullet list on and off within the editor. The code focuses on the editor and toggles the bullet list state.
editor.chain().focus().toggleBulletList().run();
Check if Selection is Bullet List
This feature checks if the current selection in the editor is a bullet list. The code returns a boolean indicating whether the selection is a bullet list.
const isBulletList = editor.isActive('bulletList');
prosemirror-schema-list is a ProseMirror schema extension that provides list item and ordered list nodes. It offers similar functionality to @tiptap/extension-bullet-list but is more low-level and requires more setup to integrate with an editor.
slate-react is a framework for building rich text editors with Slate and React. It provides a more customizable and flexible approach to handling lists, including bullet lists, compared to @tiptap/extension-bullet-list.
draft-js is a framework for building rich text editors in React. It includes built-in support for bullet lists and other list types, offering a similar feature set to @tiptap/extension-bullet-list but with a different API and integration approach.
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.3.1 (2024-04-30)
Note: Version bump only for package tiptap
FAQs
bullet list extension for tiptap
The npm package @tiptap/extension-bullet-list receives a total of 648,170 weekly downloads. As such, @tiptap/extension-bullet-list popularity was classified as popular.
We found that @tiptap/extension-bullet-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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.