Skip to content
Snippets Groups Projects

Uss render() instead of renderRoot() to ensure attachments make it on the page

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -155,7 +155,7 @@ class ContentBlockProcessor implements GutenbergBlockProcessorInterface {
$build['#attributes']['class'][] = 'align' . $block_attributes['align'];
}
$block_content = $this->renderer->renderRoot($build);
$block_content = $this->renderer->render($build);
// Reset the render counter for this block, as we allow it to appear many
// times of course, just not inside of itself.
Loading