1

I am trying to implement trix editor with my rails form. So far everything worked fine, but now I created this form:

<%= form_for([@statusable, @task.statuses.new], :url => administrator_organization_campaign_task_statuses_path(@organization, @campaign, @task)) do |f| %>
  <%= f.trix_editor :body %>

  <%= button_tag(type: 'submit', class: "bg-transparent animation float-right hover:bg-blue text-blue-dark font-semibold hover:text-white py-2 px-4 border border-blue hover:border-transparent rounded") do %>
    Send
  <% end %>
<% end %>

and my form looks like this:

enter image description here

I don't know why is trix toolbar showed two time, Also I can type text but toolbar is not working.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.