Support for Workspaces

Created on 19 December 2024, 3 days ago

Problem/Motivation

Mercury Editor is throw a fatal error when the core Workspaces module is enabled.

TypeError: Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController::getContentResult(): Return value must be of type array, Symfony\Component\HttpFoundation\RedirectResponse returned in Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController->getContentResult() (line 80 of core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php).

Steps to reproduce

Enable Mercury Editor and Workspaces
Edit node with Mercury Editor enabled.

Proposed resolution

  • Patch WorkspacesHtmlEntityFormController to support RedirectResponse

Remaining tasks

Determine the best approach.

User interface changes

TBD

API changes

TDB

Data model changes

TDB

πŸ“Œ Task
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

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

Comments & Activities

  • Issue created by @jrockowitz
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    The attached patch to Drupal core gets Mercury Editor loading with workspaces.

    Below shows how navigation and workspaces look within mercury editor.

Production build 0.71.5 2024