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

@tiptap/extension-dropcursor

Package Overview
Dependencies
Maintainers
5
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-dropcursor

dropcursor extension for tiptap

  • 2.10.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
increased by10.4%
Maintainers
5
Weekly downloads
 
Created

What is @tiptap/extension-dropcursor?

@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.

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

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,
    }),
  ],
});

Other packages similar to @tiptap/extension-dropcursor

Keywords

FAQs

Package last updated on 21 Nov 2024

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