Skip to content

Commit

Permalink
Fix text_edit and code_edit HTML input name
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Jul 2, 2019
1 parent 1ccfd7b commit 5e8902e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/views/form/bootstrap_4.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@

{# EasyAdmin's CodeEditor form type #}
{% block easyadmin_code_editor_widget %}
<textarea id="{{ id }}" name="{{ name }}" data-easyadmin-code-editor data-language="{{ language }}" data-tab-size="{{ tabSize }}" data-indent-with-tabs="{{ indentWithTabs ? 'true' : 'false' }}" data-js-url="{{ asset("bundles/easyadmin/form-type-code-editor.js") }}" data-css-url="{{ asset("bundles/easyadmin/form-type-code-editor.css") }}">{{ data }}</textarea>
<textarea id="{{ id }}" name="{{ full_name }}" data-easyadmin-code-editor data-language="{{ language }}" data-tab-size="{{ tabSize }}" data-indent-with-tabs="{{ indentWithTabs ? 'true' : 'false' }}" data-js-url="{{ asset("bundles/easyadmin/form-type-code-editor.js") }}" data-css-url="{{ asset("bundles/easyadmin/form-type-code-editor.css") }}">{{ data }}</textarea>

{% if height is not null %}
<style type="text/css">
Expand All @@ -489,7 +489,7 @@
{# EasyAdmin's TextEditor form type #}
{% block easyadmin_text_editor_widget %}
<input id="{{ id }}" value="{{ data }}" type="hidden" name="{{ name }}">
<input id="{{ id }}" value="{{ data }}" type="hidden" name="{{ full_name }}">
<div class="easyadmin-text-editor-wrapper">
<trix-editor input="{{ id }}" data-js-url="{{ asset("bundles/easyadmin/form-type-text-editor.js") }}" data-css-url="{{ asset("bundles/easyadmin/form-type-text-editor.css") }}"></trix-editor>
</div>
Expand Down

0 comments on commit 5e8902e

Please sign in to comment.