diff --git a/core/modules/filter/src/Element/TextFormat.php b/core/modules/filter/src/Element/TextFormat.php
index 277a776..da0a9f9 100644
--- a/core/modules/filter/src/Element/TextFormat.php
+++ b/core/modules/filter/src/Element/TextFormat.php
@@ -83,6 +83,8 @@ public static function processFormat(&$element, FormStateInterface $form_state,
       // Do not copy this #process function to prevent form_builder() from
       // recursing infinitely.
       '#process',
+      // Make sure the element is able to run its #pre_render functions.
+      '#pre_render',
       // Description is handled by theme_text_format_wrapper().
       '#description',
       // Ensure proper ordering of children.
