Socket
Book a DemoInstallSign in
Socket

@tiptap/extension-dropcursor

Package Overview
Dependencies
Maintainers
4
Versions
248
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.1.15
Source
npmnpm
Version published
Weekly downloads
1.9M
8.05%
Maintainers
4
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 08 Jan 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.