You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@tiptap/extension-dropcursor

Package Overview
Dependencies
Maintainers
6
Versions
187
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.11.4
Source
npm
Version published
Weekly downloads
1.5M
1.52%
Maintainers
6
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

tiptap

FAQs

Package last updated on 30 Jan 2025

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