From dbd7cedd245a44f587c7ce13939f311c85ef4869 Mon Sep 17 00:00:00 2001 From: Juan Segarra Montesinos Date: Sun, 5 Mar 2023 08:49:16 +0100 Subject: [PATCH] MDL-77523 mod_data: textarea field should honor editor preferred format --- mod/data/field/textarea/field.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/field/textarea/field.class.php b/mod/data/field/textarea/field.class.php index e1e8276f829..1413fe48662 100644 --- a/mod/data/field/textarea/field.class.php +++ b/mod/data/field/textarea/field.class.php @@ -120,7 +120,7 @@ class data_field_textarea extends data_field_base { $text = file_prepare_draft_area($draftitemid, $this->context->id, 'mod_data', 'content', $content->id, $options, $text); } else { $draftitemid = file_get_unused_draft_itemid(); - $format = FORMAT_HTML; + $format = editors_get_preferred_format(); } // get filepicker info