Skip to content

Publishing 0.10.0: Cross-post mentions, live demos in posts and a calmer editor

Publishing 0.10.0 lets authors link one post from another by typing [[, drop a live demo into a post with the new <Embed> component, and fixes several ways the editor could lose what you typed.

Mention another post

Type [[ in the body editor and a picker opens. It lists recently updated posts, or filters them by title as you type. Choosing one inserts a token such as [[post:UUID|Title]]. The mention points at the post by its ID, so its slug, custom URL slug and translated slugs can change without breaking the link. The link is built on every request, after the render cache, so a renamed post never leaves an old link inside a cached page. A missing, trashed or unpublished target shows as plain text, never a dead link.

Live demos with Embed

The new <Embed> component places an interactive page inside a post, as a sandboxed iframe that loads only when it scrolls into view:

<Embed src="/demos/leaf" height="520" title="Try the editor" />

The source can be a page on the same site or an external http or https address. The height is kept between 160 and 1200 pixels, 480 by default, and an optional caption shows under the frame.

Editor changes

  • The editor now opens in the site-wide Content Editor mode from the settings, instead of always in Markdown. A post body with raw HTML still opens in Markdown.
  • The Publication Date field shows its value under the picker in the site’s Date/Time Format, since the browser’s picker uses the browser’s own language.
  • The autosave status is now quiet muted text for saved, unsaved and new. Only the state that blocks autosave keeps its badge, because it gives a reason you need to act on.
  • The admin is now available in German.

Fixes

  • Fast typing could lose keystrokes: each autosave rebuilt the form from the database and overwrote what was typed during the save. Autosave also reloaded the page address after every save, which could drop a keystroke too. Both are fixed.
  • Renaming a post’s slug several times quickly could leave the public URL one save behind, and sometimes cause “URL slug already in use” conflicts. A save in the middle of a rename could also collide with the post’s own URL. The old slug now becomes a 301 redirect in the same save.
  • The slug fields no longer reject an edit that is still in progress, such as a trailing hyphen.
  • A mention cut in half by the 300-character excerpt no longer leaves a broken fragment in listings or the RSS feed.

Upgrading

Update the dependency. There is no migration and no configuration. Check the site’s Content Editor setting, since the Publishing editor now follows it.

Full release notes: Publishing 0.10.0

0.10.0 · 10 September 2026

Added

  • Cross-post mentions: typing [[ in the body editor opens a publication picker (browses recently updated posts, or filters by title as you type) and inserts a [[post:UUID|Title]] token linked by UUID, so the target’s slug, custom URL slug and translation slugs can all change freely without ever breaking the mention. Resolved to the target’s current public URL on every request, after the render cache — so a renamed target never leaves a stale link inside a cached page. A missing, trashed or unpublished target degrades to plain text, never a dead link.
  • The <Embed> PHK component: a sandboxed, lazy-loaded iframe for dropping a live, interactive demo directly into a post body (&lt;Embed src="/demos/leaf" height="520" title="Try the editor" />).
  • The publishing editor now honors the site-wide Content Editor mode (Settings → Content Editor: visual/hybrid/markdown/html) instead of always opening in markdown. A post body carrying raw HTML still opens in markdown regardless of the setting, since the other editing surfaces flatten hand-authored HTML wrappers.
  • The Publication Date field now echoes its value underneath the picker in the site’s configured Date/Time Format, since the native browser picker always renders in the browser’s own locale.

Fixed

  • A burst of post-slug renames in the editor could leave the public URL frozen one save behind the typed slug, occasionally causing “URL slug already in use” conflicts against unrelated new posts. The save now carries default-tracking url_slugs along with a post-slug rename inside the same transaction, filing the displaced slug as a 301.
  • Fast typing in the editor could lose keystrokes: every autosave rebuilt the form from a fresh DB read and re-rendered the text inputs with that echo, overwriting whatever the writer had typed in the debounce window since the save started. The save’s own live form values are now preserved through the rebuild instead.
  • Every autosave push_patched to the edit URL even when the URL hadn’t changed, which re-ran handle_params and clobbered any keystroke that landed between the save completing and the reload. The editor now only patches when the save actually moves the URL (a new post, a new translation, a new version).
  • The slug and URL-slug inputs could reject a legitimate in-progress edit (a save firing mid-word, e.g. on a trailing hyphen) with a hard validation error instead of just normalizing it on the next pause.
  • A mid-rename save could die on a self-collision (“that slug is already in use”) naming the post’s own current URL, because the uniqueness check excluded the post by its in-memory (already-renamed) slug instead of its persisted one.
  • A primary-language save whose URL-slug mirror happened to collide with another post’s custom URL slug no longer skipped the “URL slug already in use” conflict check — the mirror is validated before being dropped, not after.
  • The autosave status indicator no longer flashes a filled badge on every keystroke and debounce settle; saved/unsaved/new states are now quiet muted text, while the autosave-blocked state keeps its loud badge since it carries a reason the writer must act on.
  • A [[post:…]] mention token straddling a listing excerpt’s 300-character cut used to leave a dangling, unmatched fragment (including in the RSS feed’s item description); excerpts now reduce a mention to its visible text before slicing.

Publishing 0.10.0. Install or update: {:phoenix_kit_publishing, "~> 0.10"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.