Blocks plugin for text field and html


I make this for a blocks plugin :

panel.plugin("me/chapeau-block", {
  blocks: {
    chapeau: `<k-writer
    @input="update({ text: $event })"

After read this :

panel.plugin("your-project/button-block", {
  blocks: {
    button: `
      <button type="button" @click="open">
        {{ content.text }}

But the right panel looks like this, with html, how to remove this html ? What’s wrong ?

What is in your blueprint for this button element?

@bntwmrt, check out this response… I think it will head you in the right direction: Hide HTML tags in panel preview of custom block - #2 by thguenther

1 Like