Trix rich_text_area form field doesn't clear on submit when containing an image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Trix rich_text_area form field doesn't clear on submit when containing an image

fugee ohu
If this form contains an image the rich_text_area field doesn't clear because I'm calling    
ActionCable.server.broadcast 'room_channel', content: @message.content, msg_time: Time.now, recipients: @message.recipients, sender: @message.sender, sender_name: User.find(@message.sender).name


<%= form_with model: @message, multipart: true, remote: true do |f| %>
    <%= f.rich_text_area :content, class: 'form-control' %>
    <%= f.hidden_field :recipients, value: @conversation_with.id %>
    <%= f.hidden_field :sender, value: current_user.id %>
    <%= f.submit 'Send' %>
<% end %>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/03f98b9b-e97c-4ef0-b0b5-2a46afefabff%40googlegroups.com.