PHP 8.2.30
Preview: prosemirror-trailing-node.d.mts Size: 1.01 KB
/home/byroehnu/.trash/node_modules11/prosemirror-trailing-node/dist/prosemirror-trailing-node.d.mts

import { Plugin } from 'prosemirror-state';

interface TrailingNodePluginOptions {
    /**
     * The node to create at the end of the document.
     *
     * **Note**: the nodeName will always be added to the `ignoredNodes` lists to
     * prevent an infinite loop.
     *
     * @defaultValue 'paragraph'
     */
    nodeName?: string;
    /**
     * The nodes for which this rule should not apply.
     */
    ignoredNodes?: string[];
}
/**
 * This creates the plugin for trailing node.
 *
 * ```ts
 * import { schema } from 'prosemirror-schema-basic';
 * import { trailingNode } from 'prosemirror-trailing-node';
 *
 * // Include the plugin in the created editor state.
 * const state = EditorState.create({
 *   schema,
 *   plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })],
 * });
 * ```
 *
 * @param options - the options that can be provided to this plugin.
 */
declare function trailingNode(options?: TrailingNodePluginOptions): Plugin<boolean>;

export { type TrailingNodePluginOptions, trailingNode };

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
2.44 KB lrw-r--r-- 2026-02-28 00:26:50
Edit Download
1.01 KB lrw-r--r-- 2026-02-28 00:27:28
Edit Download
1.01 KB lrw-r--r-- 2026-02-28 00:27:44
Edit Download
1.35 KB lrw-r--r-- 2026-02-28 00:27:02
Edit Download

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