You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
654 B
27 lines
654 B
3 years ago
|
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||
|
|
||
|
var core = require('@tiptap/core');
|
||
|
var prosemirrorDropcursor = require('prosemirror-dropcursor');
|
||
|
|
||
|
const Dropcursor = core.Extension.create({
|
||
|
name: 'dropCursor',
|
||
|
addOptions() {
|
||
|
return {
|
||
|
color: 'currentColor',
|
||
|
width: 1,
|
||
|
class: undefined,
|
||
|
};
|
||
|
},
|
||
|
addProseMirrorPlugins() {
|
||
|
return [
|
||
|
prosemirrorDropcursor.dropCursor(this.options),
|
||
|
];
|
||
|
},
|
||
|
});
|
||
|
|
||
|
exports.Dropcursor = Dropcursor;
|
||
|
exports["default"] = Dropcursor;
|
||
|
//# sourceMappingURL=tiptap-extension-dropcursor.cjs.map
|