Skip to content

Commit

Permalink
feat(preset-core): add GapCursorExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Jul 28, 2020
1 parent 3fbb232 commit 02704d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-geckos-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@remirror/preset-core': minor
---

Add `GapCursorExtension` to the `CorePreset`.
1 change: 1 addition & 0 deletions packages/@remirror/preset-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@babel/runtime": "^7.10.5",
"@remirror/extension-base-keymap": "^1.0.0-next.12",
"@remirror/extension-doc": "^1.0.0-next.12",
"@remirror/extension-gap-cursor": "^1.0.0-next.12",
"@remirror/extension-history": "^1.0.0-next.12",
"@remirror/extension-paragraph": "^1.0.0-next.12",
"@remirror/extension-positioner": "^1.0.0-next.12",
Expand Down
3 changes: 3 additions & 0 deletions packages/@remirror/preset-core/src/core-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from '@remirror/core';
import { BaseKeymapExtension, BaseKeymapOptions } from '@remirror/extension-base-keymap';
import { DocExtension, DocOptions } from '@remirror/extension-doc';
import { GapCursorExtension } from '@remirror/extension-gap-cursor';
import { HistoryExtension, HistoryOptions } from '@remirror/extension-history';
import { ParagraphExtension } from '@remirror/extension-paragraph';
import { PositionerExtension, PositionerOptions } from '@remirror/extension-positioner';
Expand Down Expand Up @@ -104,6 +105,7 @@ export class CorePreset extends Preset<CorePresetOptions> {
newGroupDelay,
} = this.options;

const gapCursorExtension = new GapCursorExtension();
const docExtension = new DocExtension({ content });
const textExtension = new TextExtension();
const paragraphExtension = new ParagraphExtension();
Expand Down Expand Up @@ -138,6 +140,7 @@ export class CorePreset extends Preset<CorePresetOptions> {
paragraphExtension,
positionerExtension,
baseKeymapExtension,
gapCursorExtension,
];
}
}
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 02704d4

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://remirror.io as production
🚀 Deployed on https://5f2051c79f8d0fb17d2dcd38--remirror.netlify.app

Please sign in to comment.