Repository source: docs/concepts/shared_composer.md
Shared composer
Purpose: One partial renders every writing form (new post, compact board and QDB add, reply) so field names, signing, drafts, Outbox and attachments behave the same everywhere, while each placement chooses only what it shows.
Scenario: On the New post page a member sees the body first, then the Post row with the ··· menu, then the optional Title and the tags (and event, when enabled) below it. On a phone the body starts at the compact form's height and nothing is reserved between it and Post, so when the keyboard opens both stay on screen; long drafts scroll inside the body. The paned board's New Thread dialog renders the same full form. The board, board list and QDB add render the compact form (body and Post only, Title and tags hidden). Replies render body and Post reply, with the phone reply docking on top where enabled.
Sources: the composer partial (source unavailable) (order and modes), new post options (source unavailable), reply options (source unavailable), compose styles (source unavailable) (phone rules under 640px), composer browser test (source unavailable) (order assertion), layout stability test (source unavailable) (--phone-fit-only: 13 themes at phone and desktop sizes).
Event: with Event phrases on, the Event section starts with a When box and Fill, which fills Date, Until and Time from a phrase in place, or by a round trip without JavaScript; Enter in When means Fill (date phrase).
Offline: the reader carries the board's compact form and the thread's reply form as templates from the same partials and mounts them where the online pages have them; the worker serves the New post and Reply pages at their usual addresses (Outbox).
Placements may fix fields: the calendar day page sets the event date read-only and presets the tag, and gives the form its own draft scope (data-compose-draft-scope) so a draft from another composer never overwrites those fields (calendar).
Format: the composer's collapsed Options section (beside tags and event on New post, its own row under Post elsewhere) holds a Markdown box (unticked by default; markdown_detect.js ticks it when the draft looks like Markdown until the author sets it by hand; unticked posts are plain) a Formatting help link and the thread theme choice; its summary shows what is set; signed, unsigned and Outbox submissions all carry the choice as body_format (post body formatting).
Photo details (2026-11-15): when an attached photo carries metadata, a collapsed Photo details row under the image preview lets the author tick details to sign into the post; its summary names the ticked ones (photo details).
Pledge form (2026-11-17): on a pledge campaign's thread page, with FORUM_PLEDGES_ENABLED, the totals block holds a second reply placement (pledgePlacement): an amount field through the lead-fields slot, a short note box and "Post pledge", its own draft scope (pledge) and no Options row (composerShowOptions), so the post is plain. The reply box at the bottom no longer has the field. Scripts that look for "the" reply form skip it (data-pledge-form) (pledge campaign).