feat(richtext-lexical): relationships

This commit is contained in:
Alessio Gravili
2024-03-01 14:07:12 -05:00
parent a216af40dc
commit a3ffb80344
11 changed files with 151 additions and 101 deletions

View File

@@ -5,6 +5,9 @@ import { mediaSlug } from '../Media'
export const postsSlug = 'posts'
export const PostsCollection: CollectionConfig = {
admin: {
useAsTitle: 'text',
},
fields: [
{
name: 'text',

View File

@@ -10,6 +10,7 @@ import {
ItalicFeature,
LinkFeature,
OrderedListFeature,
RelationshipFeature,
StrikethroughFeature,
SubscriptFeature,
SuperscriptFeature,
@@ -95,6 +96,7 @@ export function buildConfigWithDefaults(testConfig?: Partial<Config>): Promise<S
editor: lexicalEditor({
features: [
ParagraphFeature(),
RelationshipFeature(),
LinkFeature(),
CheckListFeature(),
UnorderedListFeature(),