Multiroot Editor
DemoBasic Example
Implementation
The code below demonstrates how to integrate CKEditor 5 Multiroot editor in Rails. First, we load required assets using ckeditor5_assets
helper with ultrabasic
preset. Then we create multiroot editor instances using ckeditor5_editor
helper with toolbar and editable areas.
<% content_for :head do %>
<%= ckeditor5_assets %>
<% end %>
<%= ckeditor5_editor type: :multiroot do %>
<%= ckeditor5_toolbar %>
<%= ckeditor5_editable 'toolbar' do %>
This is a toolbar editable
<% end %>
<%= ckeditor5_editable 'content' %>
<% end %>