JSPM

  • Created
  • Published
  • Downloads 2000178
  • Score
    100M100P100Q217460F
  • License MIT

Drop cursor plugin for ProseMirror

Package Exports

  • prosemirror-dropcursor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prosemirror-dropcursor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

prosemirror-dropcursor

[ WEBSITE | ISSUES | FORUM | GITTER ]

ProseMirror is a well-behaved rich semantic content editor based on contentEditable, with support for collaborative editing and custom document schemas.

This module implements a plugin that shows a drop cursor for ProseMirror.

The project page has more information, a number of demos and the documentation.

This code is released under an MIT license. There's a forum for general discussion and support requests, and the Github bug tracker is the place to report issues.

Documentation

dropCursor(options: ?Object) → Plugin

Create a plugin that, when added to a ProseMirror instance, causes a decoration to show up at the drop position when something is dragged over the editor.

Supports two options: color to set the color of the cursor (defaults to black) and width to set its with in pixels (defaults to 1).