Current section

Files

Jump to
ckeditor5_phoenix lib config.ex
Raw

lib/config.ex

defmodule CKEditor5.Config do
@moduledoc """
Provides access to CKEditor 5 configuration, specifically the presets defined in the application environment.
Prefer to not modify values too much, do it in other modules.
"""
@app :ckeditor5_phoenix
@doc """
Returns the raw presets configuration from the application environment.
It's unprocessed raw configuration, not merged with defaults.
In order to use processed presets, use `CKEditor5.Presets.presets/0` or `CKEditor5.Presets.all_with_default/0`.
"""
@spec raw_presets() :: map()
def raw_presets do
Application.get_env(@app, :presets, %{})
end
end