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-dropcursor
Advanced tools
[![Version](https://img.shields.io/npm/v/@tiptap/extension-dropcursor.svg?label=version)](https://www.npmjs.com/package/@tiptap/extension-dropcursor) [![Downloads](https://img.shields.io/npm/dm/@tiptap/extension-dropcursor.svg)](https://npmcharts.com/comp
@tiptap/extension-dropcursor is an extension for the Tiptap editor that provides a visual indicator for where content will be dropped when dragging and dropping elements within the editor. This enhances the user experience by making it clear where the content will be inserted.
Basic Drop Cursor
This code initializes a Tiptap editor with the Dropcursor extension. The drop cursor is configured to be blue and 2 pixels wide.
import { Dropcursor } from '@tiptap/extension-dropcursor';
import { Editor } from '@tiptap/core';
const editor = new Editor({
extensions: [
Dropcursor.configure({
color: 'blue',
width: 2,
}),
],
});
Custom Drop Cursor
This code initializes a Tiptap editor with a custom drop cursor that is red and 4 pixels wide.
import { Dropcursor } from '@tiptap/extension-dropcursor';
import { Editor } from '@tiptap/core';
const editor = new Editor({
extensions: [
Dropcursor.configure({
color: 'red',
width: 4,
}),
],
});
prosemirror-dropcursor is a similar package for the ProseMirror editor. It provides a drop cursor to indicate where content will be dropped. Like @tiptap/extension-dropcursor, it enhances the user experience by making the drop location clear. However, it is designed specifically for ProseMirror and may require additional configuration to work with Tiptap.
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.
FAQs
dropcursor extension for tiptap
The npm package @tiptap/extension-dropcursor receives a total of 862,968 weekly downloads. As such, @tiptap/extension-dropcursor popularity was classified as popular.
We found that @tiptap/extension-dropcursor 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.