You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Namespaced input id is not taken into account when generating editor, thus no content is displayed into trix editor.
To Reproduce
<%= simple_form_for entity, url: some_path(entity), namespace: 'some' do |f| %>
<%= f.input :rich_text_field, as: :trix_editor %>
<% end %>
Expected behavior
Input gets namespaced id some_rich_text_field. Trix editor has input value some_rich_text_field also. It populates the right value for the text field.
Actual behavior
Input gets namespaced id some_rich_text_field. Trix editor has input value rich_text_field and doesn't populate the field.
Screenshots or Video
N/A
Environment (please complete the following information):
Rails version: 5.2.4
trix-rails version: 2.2.0
Browser: Version 80.0.3987.162 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
Describe the bug
Namespaced input id is not taken into account when generating editor, thus no content is displayed into trix editor.
To Reproduce
Expected behavior
Input gets namespaced id
some_rich_text_field
. Trix editor has input valuesome_rich_text_field
also. It populates the right value for the text field.Actual behavior
Input gets namespaced id
some_rich_text_field
. Trix editor has input valuerich_text_field
and doesn't populate the field.Screenshots or Video
N/A
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: