@flogeez/angular-tiptap-editor 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to `@flogeez/angular-tiptap-editor` will be documented in th
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), with the exception that the major version is specifically aligned with the major version of [Tiptap](https://tiptap.dev).
|
|
7
7
|
|
|
8
|
+
## [2.2.3] - 2026-01-27
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Link Navigation**: Added support for opening links via `Ctrl + Click` (Windows/Linux) or `Cmd + Click` (macOS), allowing users to follow links directly from the editor even in edit mode.
|
|
13
|
+
|
|
8
14
|
## [2.2.2] - 2026-01-26
|
|
9
15
|
|
|
10
16
|
### Refactored
|
|
@@ -5646,13 +5646,14 @@ const AteLinkClickBehavior = Extension.create({
|
|
|
5646
5646
|
new Plugin({
|
|
5647
5647
|
key: new PluginKey("linkClickBehavior"),
|
|
5648
5648
|
props: {
|
|
5649
|
-
handleClick(view, _pos,
|
|
5649
|
+
handleClick(view, _pos, event) {
|
|
5650
5650
|
// handleClick only runs in the browser, but we guard it for absolute SSR safety
|
|
5651
5651
|
if (typeof window === "undefined") {
|
|
5652
5652
|
return false;
|
|
5653
5653
|
}
|
|
5654
|
-
|
|
5655
|
-
|
|
5654
|
+
const isModKey = event.ctrlKey || event.metaKey;
|
|
5655
|
+
// If editor is editable, only proceed if Ctrl/Cmd is pressed
|
|
5656
|
+
if (view.editable && !isModKey) {
|
|
5656
5657
|
return false;
|
|
5657
5658
|
}
|
|
5658
5659
|
const attrs = getAttributes(view.state, "link");
|