1

我正在尝试用我的 rails 表单实现 trix 编辑器。到目前为止一切正常,但现在我创建了这个表单:

<%= 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 %>

我的表格如下所示:

在此处输入图像描述

我不知道为什么 trix 工具栏显示两次,我也可以输入文本但工具栏不起作用。

4

0 回答 0