Editor form does not support content moderation.

Created on 14 April 2024, 9 months ago
Updated 17 April 2024, 8 months ago

Problem/Motivation

When content moderation module is enabled and node is in draft moderation state, the editor form should reflect the revision node vs. the published node.

This current affects the node/view route and node/latest route (provided by content moderation).

Steps to reproduce

  1. Enable content moderation
  2. Set content moderation settings for node
  3. Use the full node edit form and create a draft version.
  4. View the node, notice the sidebar form is not reflective of the current revision state
  5. Click the "Latest version" tab - notice the sidebar form is reflecting the published version as well as the iframe.

Proposed resolution

For node/view: This is a bit tricky cause if we make the form the node revision, the preview iframe provided by decoupled_preview_iframe should also be reflecting the node revision. But... node view by intent is supposed to be always showing the published version. The 2 modules need to be consistent with one another.
For node/latest: Either disable the sidebar like we did for revisions or always set the node revision to the form. The decoupled_preview_iframe module also is not properly showing the correct latest revision in the iframe on this route and I will submit a patch for that separately.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024