module CKEditor5::Rails::Cdn::Helpers

def ckeditor5_assets(

Other tags:
    Example: Editor only configuration with different types -
    Example: Using preset builder object -
    Example: Commercial usage with license key -
    Example: Using custom preset with translations and language -
    Example: Simple editor with custom configuration -
    Example: Basic usage with default preset -

Parameters:
  • kwargs (Hash) -- Additional configuration options:
  • preset (Symbol, PresetBuilder) -- The name of the preset to use (default: :default)
def ckeditor5_assets(
  preset: :default,
  importmap: true,
  lazy: false,
  **kwargs
)
  ensure_importmap_not_rendered!
  mapped_preset = merge_with_editor_preset(preset, **kwargs)
  bundle = create_preset_bundle(mapped_preset)
  @__ckeditor_context = {
    license_key: mapped_preset.license_key,
    bundle: bundle,
    preset: mapped_preset
  }
  build_assets_html_tags(bundle, mapped_preset, importmap: importmap, lazy: lazy)
end