1.0.1 • Published 7 years ago

@kapouer/prosemirror-dropcursor v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

prosemirror-dropcursor

[ WEBSITE | ISSUES | FORUM | GITTER ]

This is a non-core example module for ProseMirror. 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 examples 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.

Option to define entirely custom decoration:

  • decorate($pos: ResolvedPos) → ?Decoration (defaults to builtin decoration)

We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.

1.0.1

7 years ago

1.0.0

8 years ago

0.24.0

8 years ago

0.23.0

8 years ago

0.22.0

8 years ago

0.21.1

8 years ago

0.21.0

8 years ago

0.20.0

8 years ago