Editor Language (via editor)

DemoConfigure editor language via editor props
View on GitHub
Hello World

Implementation

The code below demonstrates how to set up CKEditor 5 language using editor properties. Language packs are loaded using translations option, while language is set via language editor property.

<% content_for :head do %>
  <%= ckeditor5_assets translations: [:pl, :es] %>
<% end %>

<%= ckeditor5_editor language: :es do %>
  Hello World
<% end %>

Additional Resources