Skip to content

feat(admin): editable gallery Portable Text block (no TipTap editor node — import/render-only) #1436

Description

@SailingGreg

Summary

EmDash has a gallery Portable Text block, but it's import/render-only — there's no TipTap editor node, so a migrated gallery can't be inserted, edited, or reordered in the admin.

Current state

  • Import: @emdash-cms/gutenberg-to-portable-text defines PortableTextGalleryBlock (_type: "gallery", images[], columns?).
  • Render: packages/core/src/components/Gallery.astro renders it and is registered by default in the PortableText component (components/index.ts).
  • Edit: ❌ nothing in packages/admin/src/components/editor/ handles gallery (unlike imageImageNode.tsx / ImageDetailPanel.tsx). A gallery that arrives via import is invisible/uneditable in the editor.

Request

A TipTap node + sidebar UI for the gallery block, mirroring the image handling:

  • insert a gallery, add/remove/reorder images (media picker)
  • set columns
  • node-view preview in the editor

Why

WordPress migrations (WP Media Folder / Gutenberg galleries) bring gallery blocks through cleanly, but authors then can't manage them post-import — they have to drop to the seed/JSON. Closing the loop (like the recent image-alignment editor work) would make galleries first-class.

Notes

Related but distinct: #1369 / #1424 concern repeater/array field types with media. This is specifically the Portable Text gallery block in the rich-text editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions