Skip to content

Commit

Permalink
fix: link clicks are no longer openable by default (#142)
Browse files Browse the repository at this point in the history
* fix: link clicks now require ctrl+click to open.

* prettier
  • Loading branch information
KonnorRogers authored Oct 12, 2023
1 parent 53af8f8 commit a69c1cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-turkeys-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"rhino-editor": patch
---

fix: `openOnClick` for links is now set to `false` by default in the editor. This fixes some bugs around editing links and was the original intended behavior.
3 changes: 3 additions & 0 deletions src/exports/elements/tip-tap-editor-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export class TipTapEditorBase extends BaseElement {
starterKitOptions: Partial<RhinoEditorStarterKitOptions> = {
// We don't use the native strike since it requires configuring ActionText.
strike: false,
rhinoLink: {
openOnClick: false,
},
};

/**
Expand Down

0 comments on commit a69c1cc

Please sign in to comment.