Skip to content

Posts 0.1.10: The post editor opens in the site's default editor mode

Posts 0.1.10 opens the post content editor in the editor mode the site has chosen as its default, instead of always starting in the editor’s own default. Writers can still switch modes inside the editor.

The default comes from PhoenixKit core’s content editor setting. On a core release that does not have that setting yet, and for any value the editor does not know, the editor opens in hybrid mode instead of failing.

The checkboxes and bulk actions of the posts list now use PhoenixKit’s shared bulk selection component, and the module now uses its tables in the database schema set by PhoenixKit’s :prefix option.

Upgrading

Posts 0.1.10 needs PhoenixKit 1.7.189 or later. There is no migration.

Full release notes: Posts 0.1.10

0.1.10 · 27 July 2026

Added

  • Open the post content editor in the site-wide default editor mode (PR #14). The editor now honours PhoenixKit core’s editor_default_mode setting (admin-editable under Settings → Content Editor) instead of always opening in Leaf’s built-in default; users can still switch modes inside the editor.

Fixed

  • Don’t call PhoenixKit.Settings.get_editor_mode/0 unconditionally. That function exists only in unreleased core builds, while this package’s pin (~> 1.7.189) admits older ones — as merged, PR #14 emitted an undefined or private compile warning (failing mix precommit) and crashed the post editor’s mount/3 with an UndefinedFunctionError on every released phoenix_kit. The setting is now read through a function_exported? probe that falls back to :hybrid, matching how phoenix_kit_comments reads the same setting.
  • Normalise the editor mode before handing it to Leaf. Leaf’s internal normalize_mode/2 has no catch-all clause, so an unexpected value (a raw string from the settings row, nil, a mode added later) raised a FunctionClauseError inside the component; unknown values now fall back to :hybrid.
  • Read the editor-mode setting in handle_params/3 (via load_form_data/1, where every other posts setting is loaded) rather than in mount/3, which runs twice per page load.
  • Drop the orphaned beamlab_ex_aws_sqs entry from mix.lock. phoenix_kit 1.7.213 depends on that package under the :ex_aws_sqs key, leaving the old entry unused and mix deps.unlock --check-unused (and therefore mix precommit) failing.

Posts 0.1.10. Install or update: {:phoenix_kit_posts, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.