Created
August 8, 2022 19:22
-
-
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}}],`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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