Ajax Error When Adding Unlimited Long Text Fields with WYSIWYG Enabled in Paragraphs Module

Created on 6 February 2024, 8 months ago
Updated 12 February 2024, 8 months ago

Problem/Motivation

am encountering an issue with the Paragraphs module on a Drupal 9 site, specifically when trying to add custom fields to paragraphs. My goal is to create paragraphs that can contain a title and a body, where the body field is a "Long text" type with the "Full content" option enabled to display the toolbar (WYSIWYG editor). I need these body fields to be unlimited, allowing the addition of as much content as desired. However, when the WYSIWYG editor is enabled for these long text fields, attempting to add a new content item to the paragraph results in an Ajax error, preventing the addition of any new content items.

Steps to reproduce

1. Navigate to the structure management of paragraphs and select a paragraph type to add a custom field to.
2. Add a new field with the following characteristics:
- Field Type: Long text
- Widget: Text area with a summary (to enable the "Full content" option)
- Enable the "Unlimited" option to allow adding multiple entries.
3. Attempt to add a new content item to a paragraph that includes the custom field.
4. Observe that an Ajax error is thrown, and the content item cannot be added.

Expected Behavior:

The expected behavior is that when a long text field with the WYSIWYG editor enabled is set to unlimited, users should be able to add new content items to the paragraph without encountering any errors.

Actual Behavior:

When attempting to add a new content item to a paragraph that includes an unlimited long text field with the WYSIWYG editor enabled, an Ajax error is encountered, and it is not possible to add the content item.

Environment:

Drupal version: 9.x

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @nasreddin
  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner

    I'm not able to reproduce this issue on Drupal 10.1. This module doesn't provide a widget as you described "Widget: Text area with a summary (to enable the "Full content" option)". I would at least recommend updating to Drupal 10 since Drupal 9 will be lacking support. If you installed the patch for multi-value support from Core... maybe reference what you're using for that? I don't really know what else to tell you at this point since I can't reproduce it.

  • Status changed to Closed: cannot reproduce 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner
Production build 0.71.5 2024