Support for embedding links and references in text editor (#9003)

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko
2025-05-21 11:45:08 +07:00
committed by GitHub
parent e201abcc91
commit 007b11c9df
39 changed files with 1554 additions and 77 deletions
@@ -31,6 +31,7 @@
export let component: AnyComponent | undefined = undefined
export let disabled: boolean = false
export let onClick: ((event: MouseEvent) => void) | undefined = undefined
export let transparent: boolean = false
const client = getClient()
const hierarchy = client.getHierarchy()
@@ -124,7 +125,7 @@
data-label={displayTitle}
use:tooltip={docTooltip}
>
<DocNavLink object={doc} component={docComponent} {disabled} inlineReference {onClick}>
<DocNavLink object={doc} component={docComponent} {disabled} inlineReference {onClick} {transparent}>
{#if icon}<Icon {icon} size="small" />{' '}{:else}@{/if}{displayTitle}
</DocNavLink>
</span>