Form Helpers

DemoUsing CKEditor 5 in Rails forms
View on GitHub

Rails Form Builder

Simple Form Integration

Implementation

The code below shows how to use CKEditor 5 with different form builders. You can use both the standard Rails form helper and Simple Form.

<% form_with url: '/demos' do |f| %>
  <%= f.ckeditor5 :content %>
<% end %>
<% simple_form_for :demo do |f| %>
  <%= f.input :content, as: :ckeditor5 %>
<% end %>

Additional Resources