From 03b22319cf32bd522a9039f5384b40ace56386c1 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 25 Aug 2022 22:27:11 +0800 Subject: [PATCH] MDL-75909 mod_data: Make template editor use html editor When the template editor is configured to use the HTML Editor, it should indicate this to Behat by setting the `data-fieldtype` to "editor". This indicates to the behat field manager that the editor is in use, which ensures that the correct value setting can take place. This is important in the context of MDL-75887. --- mod/data/templates/template_editor.mustache | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/data/templates/template_editor.mustache b/mod/data/templates/template_editor.mustache index e4e4461f8f2..0dd1bd73da7 100644 --- a/mod/data/templates/template_editor.mustache +++ b/mod/data/templates/template_editor.mustache @@ -85,6 +85,7 @@ class="form-control" rows="15" cols="80" + {{#usehtmleditor}}data-fieldtype="editor"{{/usehtmleditor}} >{{value}}