CKEditor5.Preset (ckeditor5 v0.2.0)

View Source

Represents a CKEditor 5 preset configuration.

Summary

Functions

Checks if the preset has a Cloud configuration. Returns true if the cloud field is not nil, false otherwise.

Merges the current preset configuration with the provided overrides.

Sets the type of the preset.

Types

t()

@type t() :: %CKEditor5.Preset{
  cloud: CKEditor5.Cloud.t() | nil,
  config: map(),
  license: CKEditor5.License.t(),
  type: atom()
}

Functions

configured_cloud?(preset)

Checks if the preset has a Cloud configuration. Returns true if the cloud field is not nil, false otherwise.

merge(preset, overrides)

Merges the current preset configuration with the provided overrides.

of_type(preset, type)

Sets the type of the preset.