<link rel="stylesheet" href="//cdn.quilljs.com/1.2.6/quill.snow.css">
<!-- TODO: Change the style import from CDN to Javscript import -->

<%= form_with(model: activity, local: true) do |form| %>
  <% if activity.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(activity.errors.count, "error") %> prohibited this activity from being saved:</h2>

      <ul>
      <% activity.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="form-group">
    <%= form.label :title, class: "form-label" %>
    <%= form.text_field :title, class: "form-control" %>
  </div>

  <div class="form-group text-editor">
    <%= form.label :article, class: "form-label" %>
    <%= form.hidden_field :article, class: "form-control"%>
  </div>

  <div class="form-group text-editor">
    <%= form.label :description, class: "form-label" %>
    <%= form.hidden_field :description, class: "form-control" %>
  </div>

  <div class="actions">
    <%= form.submit class: "btn btn-primary" %>
  </div>
<% end %>

<link rel="stylesheet" href="//cdn.quilljs.com/1.2.6/quill.snow.css">
<!-- TODO: Change the style import from CDN to Javscript import -->

<%= form_with(model: activity, local: true) do |form| %>
  <% if activity.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(activity.errors.count, "error") %> prohibited this activity from being saved:</h2>

      <ul>
      <% activity.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="form-group">
    <%= form.label :title, class: "form-label" %>
    <%= form.text_field :title, class: "form-control" %>
  </div>

  <div class="form-group text-editor">
    <%= form.label :article, class: "form-label" %>
    <%= form.hidden_field :article, class: "form-control"%>
  </div>

  <div class="form-group">
    <%= form.label :description, class: "form-label" %>
    <%= form.text_field :description, class: "form-control" %>
  </div>

  <div class="actions">
    <%= form.submit class: "btn btn-primary" %>
  </div>
<% end %>

Remove text editor from description
Remove text editor from description
