MDL-83282 core_form: Hint the field type for editor format selector

This was previously only working because Atto was actively setting the
value when it should never has done so.
This commit is contained in:
Andrew Nicols
2025-03-05 11:35:25 +08:00
parent 1aeaf278c1
commit 63fbef8bf4
+1 -1
View File
@@ -36,7 +36,7 @@
<div>
{{#hasformats}}
<label for="menu{{name}}format" class="visually-hidden">{{formatlabel}}</label>
<select name="{{name}}[format]" id="menu{{name}}format" class="form-select">
<select name="{{name}}[format]" id="menu{{name}}format" class="form-select" data-fieldtype="text">
{{#formats}}
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{text}}</option>
{{/formats}}