Editor Language (via preset)

DemoConfigure editor language via preset
View on GitHub
Hello World

Implementation

The code below demonstrates how to set up CKEditor 5 language using preset. Language is configured in the preset language option.

def locale_via_preset
  @preset = ckeditor5_preset(:default).override do
    language :ru
  end
end
<% content_for :head do %>
  <%= ckeditor5_assets preset: @preset %>
<% end %>

<%= ckeditor5_editor %>

Additional Resources