API Reference coelho v#0.4.0

Copy Markdown View Source

Modules

Structured rich text for Elixir.

A Coelho document as an Ash attribute, stored in a :map column.

Metadata of one uploaded file, addressed by key.

Attachments referenced by key, resolved to a URL at render time.

Validation, normalisation and plain text extraction of documents.

A single validation failure, located in the document tree.

Declaring a rich text field on an Ecto schema.

Ecto type storing a Coelho document in a :map (jsonb) column.

Importing existing HTML into a document.

The editor, as a function component.

Driving and reading the editor from a LiveView test.

Serves attachment bytes, behind a signature.

Turns a validated document into HTML.

A rich text schema: the set of node and mark types a document may use.

Specification and validation of a single node or mark attribute.

Parser and matcher for ProseMirror-style content expressions.

The schema Coelho ships with.

Specification of a single mark type, such as bold or link.

Specification of a single node type.

Where the bytes of an attachment live.

Attachment bytes on the local filesystem.

The events Coelho emits, and what they carry.

Mix Tasks

Generates the migration for Coelho.Attachment.