fix edge case for Link extenstions (#7646)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
This commit is contained in:
Denis Tingaikin 2025-01-14 08:13:49 +03:00 committed by GitHub
parent 3091821c4a
commit 6711ceb877
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ export const DefaultKit = Extension.create<DefaultKitOptions>({
multicolor: false
}),
Typography.configure({}),
Link.configure({
Link.extend({ inclusive: false }).configure({
openOnClick: true,
HTMLAttributes: { class: 'cursor-pointer', rel: 'noopener noreferrer', target: '_blank' }
})

View File

@ -1,5 +1,5 @@
//
// Copyright © 2023, 2024 Hardcore Engineering Inc.
// Copyright © 2023, 2024, 2025 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
@ -61,7 +61,7 @@ export const DefaultKit = Extension.create<DefaultKitOptions>({
multicolor: false
}),
Typography.configure({}),
Link.configure({
Link.extend({ inclusive: false }).configure({
openOnClick: true,
HTMLAttributes: { class: 'cursor-pointer', rel: 'noopener noreferrer', target: '_blank' }
}),