Govspeak Editor example

With errors

How it looks (preview)

Error: there's nothing here
no really, there's nothing here

Generating preview, please wait.

There is an error in your Markdown. Select Back to edit and review your markdown.

How to call this example

<%= render "components/govspeak_editor", {
  label: {
    text: "Document content body",
    bold: true
  },
  name: "default",
  error_items: [
    {
      text: "there's nothing here",
      href: "error1"
    },
    {
      text: "no really, there's nothing here",
      href: "error2"
    }
  ]
} %>