Skip to content

Publishing 0.16.0: Visual previews of images and components in the Phoenix CMS editor

Publishing 0.16.0 makes the PhoenixKit CMS editor easier to write in: images, galleries, calls to action and embeds now appear as previews while you write, instead of as boxes of attributes.

See your components while you write

Publishing posts can contain components such as <Image>, <Gallery>, <CTA>, <Embed> and <Audio>. Until now the editor showed them as raw attribute boxes. In 0.16, <Image> and <Showcase> show their picture, including inside a gallery, and headlines, buttons, embeds and audio blocks look like what they will become on the page. The signed image URLs used for the preview are never saved into the post itself.

The PhoenixKit Publishing editor showing a Headline component and an Image component as visual previews The PhoenixKit Publishing editor showing a Headline component and an Image component as visual previews

The Publishing editor in 0.16: a headline and an image appear as what they will become, not as boxes of attributes.

The PhoenixKit Publishing editor showing an Image component and a CTA button as previews The PhoenixKit Publishing editor showing an Image component and a CTA button as previews

Further down the same post: an image and a call-to-action button, shown as they will look.

Cleaner pages and feeds

Text that merely mentions a component, such as typing <CTA in a sentence, now stays text instead of turning into a live button on the published page. RSS feed descriptions are now plain text, without Markdown asterisks or escape characters, so feed readers show them as intended.

Upgrading

The editor now needs Leaf 0.10.1 or later, which fixes two editor bugs: text inserted from the component toolbar could arrive with backslashes, and text typed after a [[link]] could be lost on save. Update your Leaf JavaScript bundle together with the dependency. There is no database migration. Every post is re-rendered once after the deploy, because the render cache version changed.

This site’s own news is published with Publishing.

Full release notes: Publishing 0.16.0

0.16.0 · 6 November 2026

Changed

  • Leaf requirement is now >= 0.10.1 and < 1.0.0 (was >= 0.5.1). The editor passes Leaf tag_previews and media_url, added in 0.9.0, and 0.10.1 fixes two 0.10.0 bugs this editor hits: text inserted by the component toolbar could arrive backslash-escaped, and text typed after a [[…]] link was lost on save. Hosts must update their Leaf JS bundle along with the dependency. No migration.
  • The render cache moves to v10, so every post re-renders once after deploy.
  • Dependencies refreshed to PhoenixKit 3.4.0 and phoenix_kit_ai 0.28.0.

Added

  • Components are drawn as previews in the editor (#63). <Image> and <Showcase> show their picture, also inside a <Gallery>, and <Headline>, <CTA>, <Embed> and <Audio> read as what they are instead of a box of attributes. The signed picture URL stays out of the saved body. A <CTA> preview does not show its destination yet, because Leaf’s button preview does not read action; it stays in the block’s hover title.

Fixed

  • Text written as a literal <Tag no longer renders as a live component. Leaf 0.10 stores a typed < as \<, and the renderer’s component and note scanners ignored the backslash, so \<CTA action="/x"> became a real button with a stray backslash on the page. They now treat it as text, and so do excerpts.
  • RSS descriptions are plain text. They carried the body’s Markdown as written, including **bold** and Leaf’s backslash escapes.
  • The editor no longer opens a post in markdown mode because its text holds an escaped \<b.

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