CKEditor5.Preset.EditorType (ckeditor5 v0.2.0)

View Source

Defines the available editor types for CKEditor5 presets. This module provides a schema for the editor types and includes a function to validate them.

Summary

Functions

s()

Checks if the given type is a single editing-like editor. Single editing-like editors are those that allow inline or classic editing modes.

Validates the given editor type against the defined schema. Returns :ok if the type is valid, or an error tuple if it is not.

Functions

s()

single_editing_like?(type)

Checks if the given type is a single editing-like editor. Single editing-like editors are those that allow inline or classic editing modes.

valid?(type)

Validates the given editor type against the defined schema. Returns :ok if the type is valid, or an error tuple if it is not.