All collaboration tool buttons are disabled in layout builder pages

Created on 9 December 2024, 4 months ago

Problem/Motivation

When you attempt to add a block into a content type that uses layout builder, the plugins for collaboration appears but are not usable.

The tools works as excepted in non layout builder pages.

Steps to reproduce

- Set the collaboration tools (comments, track changes, etc) into the Basic HTML or Rich HTML text format.
- Create a content type that uses layout builder. Under the Manage Display tab, ensure you set "Use Layout Builder" and "Allow each content item to have its layout customized."
- Create a page for that content type.
- Go to the layout tab > Add Block > Create content block (Text block)
- Make sure you selected the text format you set the collaboration tools.
- Try to add a comment or tracking changes. -> It does not work :( all collaboration tools are disabled.

Proposed resolution

Include Layout builder Content Block forms into the valid ones to trigger the tools

🐛 Bug report
Status

Active

Version

1.3

Component

Plugin: Collaboration

Created by

🇦🇷Argentina diego.sabolo@gmail.com

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

Comments & Activities

  • Issue created by @diego.sabolo@gmail.com
  • 🇵🇱Poland salmonek

    Hi Diego

    Collaboration features requires an editor to be working within a context of a fieldable entity. We require this as we have to save the comments/changes/history data in database tables defined in the module. In order to connect edited content with entries in our custom tables whe need entity, field and delta values which are not available in the layout content block.

    There is a workaround - A block library block can be created - it will be possible to use collaboration plugins within it's edit form. Then that block can be added to the layout (Content block section in the "Choose a block" sidebar).

Production build 0.71.5 2024