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_modesetting (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/0unconditionally. That function exists only in unreleased core builds, while this package’s pin (~> 1.7.189) admits older ones — as merged, PR #14 emitted anundefined or privatecompile warning (failingmix precommit) and crashed the post editor’smount/3with anUndefinedFunctionErroron every released phoenix_kit. The setting is now read through afunction_exported?probe that falls back to:hybrid, matching howphoenix_kit_commentsreads the same setting. - Normalise the editor mode before handing it to Leaf. Leaf’s internal
normalize_mode/2has no catch-all clause, so an unexpected value (a raw string from the settings row,nil, a mode added later) raised aFunctionClauseErrorinside the component; unknown values now fall back to:hybrid. - Read the editor-mode setting in
handle_params/3(viaload_form_data/1, where every other posts setting is loaded) rather than inmount/3, which runs twice per page load. - Drop the orphaned
beamlab_ex_aws_sqsentry frommix.lock. phoenix_kit 1.7.213 depends on that package under the:ex_aws_sqskey, leaving the old entry unused andmix deps.unlock --check-unused(and thereforemix 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.