Install
Works with Drupal: ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
First release published on drupal.org. Alpha: the /api/editor/v1 contract is stable, the module is still settling. Requires Drupal 11 and PHP 8.3+.
What the module does
Exposes the Editor API contract used by Editor for Drupal & Statamic, the iOS app: nodes, media (upload included) and taxonomy terms, a blueprint per content type so clients render forms dynamically, drafts with explicit publishing, revisions and restore, tokens tied to real Drupal users, entity and field access checked on every write, X-Base-Modified conflict detection. HTML bodies keep their text format. The same contract exists for Statamic as ppcharlier/statamic-editor-api.
Since 1.0.0-alpha4
- Asset, thumbnail and site URLs are served over
httpswhen the request is secure or proxied withX-Forwarded-Proto: https(Tailscale, Caddy, Nginx, Traefik), so iOS App Transport Security stops blocking mixed content.
Install
composer require drupal/editor_api drush en editor_api
Grant Access the Editor API to the roles that may sign in from the app; everything else follows Drupal's own access control.