import { extension , isInstanceOf , PlainExtension , ProsemirrorPlugin } from '@remirror/core' ; import { GapCursor , gapCursor } from '@remirror/pm/gapcursor' ; remarks @ extension ( { } ) export class GapCursorExtension extends PlainExtension { get name ( ) { return 'gapCursor' as const ; } createExternalPlugins ( ) { return [ gapCursor ( ) ] ; } } param value export const isGapCursorSelection = isInstanceOf ( GapCursor ) ; declare global { namespace Remirror { interface AllExtensions { gapCursor : GapCursorExtension ; } } }