Added "@" shortcut to trigger internal linking search (beta)

no issue

Typing "@" in the editor will immediately trigger an internal link search to make it faster to link to one of your articles. After typing "@" continue typing to search, results can be selected using Up/Down arrow keys or the mouse, then pressing Enter or clicking will insert the selected result's title pre-linked. Pressing Escape or moving the cursor out of the search box will cancel the search.

- removed labs flag
- updated Koenig feature flag for at-linking to use the same flag as our internal linking beta
This commit is contained in:
Kevin Ansfield 2024-06-11 16:13:40 +01:00
parent ace8a2fb65
commit a896e1ccb7
4 changed files with 1 additions and 7 deletions

View File

@ -59,10 +59,6 @@ const features = [{
title: 'NestJS Playground', title: 'NestJS Playground',
description: 'Wires up the Ghost NestJS App to the Admin API', description: 'Wires up the Ghost NestJS App to the Admin API',
flag: 'NestPlayground' flag: 'NestPlayground'
},{
title: 'Internal Linking @-links (internal alpha)',
description: 'Adds internal URL search when typing @ in the editor',
flag: 'internalLinkingAtLinks'
},{ },{
title: 'ActivityPub', title: 'ActivityPub',
description: '(Highly) Experimental support for ActivityPub.', description: '(Highly) Experimental support for ActivityPub.',

View File

@ -447,7 +447,7 @@ export default class KoenigLexicalEditor extends Component {
collectionsCard: this.feature.collectionsCard, collectionsCard: this.feature.collectionsCard,
collections: this.feature.collections, collections: this.feature.collections,
internalLinking: this.feature.internalLinking, internalLinking: this.feature.internalLinking,
internalLinkingAtLinks: this.feature.internalLinkingAtLinks, internalLinkingAtLinks: this.feature.internalLinking,
contentVisibility: this.feature.contentVisibility contentVisibility: this.feature.contentVisibility
}, },
deprecated: { // todo fix typo deprecated: { // todo fix typo

View File

@ -83,7 +83,6 @@ export default class FeatureService extends Service {
@feature('onboardingChecklist') onboardingChecklist; @feature('onboardingChecklist') onboardingChecklist;
@feature('ActivityPub') ActivityPub; @feature('ActivityPub') ActivityPub;
@feature('internalLinking') internalLinking; @feature('internalLinking') internalLinking;
@feature('internalLinkingAtLinks') internalLinkingAtLinks;
@feature('editorExcerpt') editorExcerpt; @feature('editorExcerpt') editorExcerpt;
@feature('newsletterExcerpt') newsletterExcerpt; @feature('newsletterExcerpt') newsletterExcerpt;

View File

@ -54,7 +54,6 @@ const ALPHA_FEATURES = [
'importMemberTier', 'importMemberTier',
'lexicalIndicators', 'lexicalIndicators',
'adminXDemo', 'adminXDemo',
'internalLinkingAtLinks',
'contentVisibility' 'contentVisibility'
]; ];