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 '
'; echo ''; @@ -344,7 +346,7 @@ $field = 'template'; $editor->set_text($data->{$mode}); $editor->use_editor($field, $options); echo '
'; -echo ''; echo '
'; echo ''; @@ -360,7 +362,7 @@ if ($mode == 'listtemplate'){ $editor->set_text($data->listtemplatefooter); $editor->use_editor($field, $options); echo '
'; - echo ''; echo '
'; echo ''; @@ -377,7 +379,7 @@ if ($mode == 'listtemplate'){ $editor->set_text($data->rsstitletemplate); $editor->use_editor($field, $options); echo '
'; - echo ''; echo '
'; echo '';