PHP 8.2.30
Preview: index.js Size: 992 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@tiptap/extension-gapcursor/dist/index.js

import { Extension, callOrReturn, getExtensionField } from '@tiptap/core';
import { gapCursor } from '@tiptap/pm/gapcursor';

/**
 * This extension allows you to add a gap cursor to your editor.
 * A gap cursor is a cursor that appears when you click on a place
 * where no content is present, for example inbetween nodes.
 * @see https://tiptap.dev/api/extensions/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=index.js.map

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
902 B lrw-r--r-- 2026-02-28 00:28:00
Edit Download
539 B lrw-r--r-- 2026-02-28 00:27:14
Edit Download
1.05 KB lrw-r--r-- 2026-02-28 00:26:34
Edit Download
1.93 KB lrw-r--r-- 2026-02-28 00:27:24
Edit Download
137 B lrw-r--r-- 2026-02-28 00:28:08
Edit Download
189 B lrw-r--r-- 2026-02-28 00:27:32
Edit Download
992 B lrw-r--r-- 2026-02-28 00:26:44
Edit Download
1.86 KB lrw-r--r-- 2026-02-28 00:27:36
Edit Download
1.52 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
1.94 KB lrw-r--r-- 2026-02-28 00:27:44
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).