Skip to content

Instantly share code, notes, and snippets.

@troyatomic
Created August 8, 2022 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troyatomic/50323f8eb1eec8156e985e630d67e749 to your computer and use it in GitHub Desktop.
Save troyatomic/50323f8eb1eec8156e985e630d67e749 to your computer and use it in GitHub Desktop.
Code snippet to replace line 47 of pet.js from `of: [{type: 'block'}, {type: 'image', options: {hotspot: true}}],`
of: [
{
type: 'block',
marks: {
annotations: [
{
name: 'product',
type: 'reference',
to: [
{
type: 'product'
}
],
blockEditor: {
icon: PackageIcon,
render: ProductRenderer
}
}
]
}
},
{type: 'image', options: {hotspot: true}}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment