How to parse (serialize) an image added in a post #1247
mikevarela
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
Hi, I'm using a modified version of the function mentioned here which is called by the afterChange hook. The function is missing a case for if (node) {
let nodeHTML
switch (node.type)
case 'upload':
nodeHTML = _createImgSrcSetEl(node.value, webImgDir)
//`<strong>${node.relationTo} Upload: ${node.value}</strong><br/>`;
break;
//...
} By |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've built a posts collection. Have added upload to the collection to 'Media' and now have a main image used for the summary card and the main post page image (featured). However, when writing a post I'd like to add images throughout. I know you have add and upload planned for a future release, that's great! However, I'm trying to figure out how to display this image in my page. I've checked Slates docs and your own and looked at the serialize ts file and dont' see where to parse and display using the RichText component. Can you help?
Beta Was this translation helpful? Give feedback.
All reactions