diff --git a/mod/data/templates.php b/mod/data/templates.php index 73873a29ac5..59260ce248d 100644 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -183,8 +183,10 @@ if (($mode === 'csstemplate') || ($mode === 'jstemplate')) { $usehtmleditor = data_get_config($data, "editor_{$mode}", true); } +$datafieldtype = ''; if ($usehtmleditor) { $format = FORMAT_HTML; + $datafieldtype = ' data-fieldtype="editor" '; } else { $format = FORMAT_PLAIN; } @@ -226,7 +228,7 @@ if ($mode == 'listtemplate'){ $field = 'listtemplateheader'; $editor->set_text($data->listtemplateheader); $editor->use_editor($field, $options); - echo '