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.

26 lines
783 B

import { Extension, callOrReturn, getExtensionField } from '@tiptap/core';
import { gapCursor } from 'prosemirror-gapcursor';
const Gapcursor = Extension.create({
name: 'gapCursor',
addProseMirrorPlugins() {
return [
gapCursor(),
];
},
extendNodeSchema(extension) {
var _a;
const context = {
name: extension.name,
options: extension.options,
storage: extension.storage,
};
return {
allowGapCursor: (_a = callOrReturn(getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null,
};
},
});
export { Gapcursor, Gapcursor as default };
//# sourceMappingURL=tiptap-extension-gapcursor.esm.js.map