Govspeak Editor example

With attachments and alternative format provider

How it looks (preview)

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: "with_image_ids_and_alternative_format_provider_id",
  data_attributes: {
    alternative_format_provider_id: 123,
    image_ids: [
      1,
      2,
      3
    ],
    attachment_ids: [
      3,
      4,
      5
    ]
  },
  value: "## What is Lorem Ipsum?
    
    Lorem Ipsum is simply dummy text of the printing and typesetting industry.
    
    This is an attachment: !@1
    
    This is an image: !!1
    "
} %>