I’ve created a custom block (via a plugin). The custom block uses other blocks for its content. It works perfectly in that I can add content to the block that then renders in the front-end.
The challenge I’m having is getting the content to preview in the Panel as intended, rather than displaying the raw content. I’ve looked through the Docs and the Forum but I can’t seem to find anything that explains what I need to add to my plugin’s index.js file.
The index.js file currently looks like this…
panel.plugin("brandsistency/feature-block", {
blocks: {
feature: `
<div @click="open">
{{ content.text }}
</div>
`
}
});
But the Panel preview looks like this…
Can anyone let me know what, if any, changes I can make to the index.js file to ‘correct’ the Panel preview? Thanks.