Skip to content

Instantly share code, notes, and snippets.

View MarvinVrdoljak's full-sized avatar

Marvin Vrdoljak MarvinVrdoljak

View GitHub Profile
@MarvinVrdoljak
MarvinVrdoljak / CollectionTest.ts
Last active August 17, 2023 11:59
Synchronize/change value of rich text field
import {CollectionConfig} from 'payload/types'
import {TestComponent} from '../component/TestComponent'
export const CollectionTest: CollectionConfig = {
slug: 'test',
fields: [
// Normal text field
{
name: 'text',
type: 'text',