Markdown editor example

With error

How it looks (preview)

Error: There is a problem with this input

How to call this example

<%= render "components/markdown_editor", {
  label: {
    text: "Body with error"
  },
  textarea: {
    name: "markdown-editor-error",
    id: "markdown-editor-error"
  },
  error_items: [
    {
      text: "There is a problem with this input"
    }
  ]
} %>