You are here

webform-html-editor-markup.html.twig in Webform 6.x

Same filename and directory in other branches
  1. 8.5 templates/webform-html-editor-markup.html.twig

Theme implementation for webform html editor markup.

Available variables

  • markup: HTML markup.
  • allowed_tags: Allowed tags.
  • content: Renderable HTML markup.

Using Twig output modifer to remove extra carriage returns at the end of the generated markup.

File

templates/webform-html-editor-markup.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation for webform html editor markup.
  5. *
  6. * Available variables
  7. * - markup: HTML markup.
  8. * - allowed_tags: Allowed tags.
  9. * - content: Renderable HTML markup.
  10. *
  11. * Using Twig output modifer to remove extra carriage returns at the end of
  12. * the generated markup.
  13. *
  14. * @see template_preprocess_webform_html_editor_markup()
  15. * @see \Drupal\webform\Element\WebformHtmlEditor::checkMarkup
  16. * @see https://www.drupal.org/project/drupal/issues/2245901
  17. * @see https://twig.symfony.com/doc/2.x/templates.html#whitespace-control
  18. * @ingroup themeable
  19. */
  20. #}
  21. {{- content -}}