Delete orphaned embedded_paragraphs

Created on 18 April 2020, over 5 years ago
Updated 17 June 2025, 2 months ago

Problem/Motivation

Deleting a node with an embedded paragraph leaves behind an orphaned paragraph.

Steps to reproduce

  1. Create a node
  2. In CKEditor, add a paragraph
  3. Create and place a paragraph of your choice, call it 'My test paragraph'
  4. Save the node
  5. Delete the node created in step 1
  6. Create another node
  7. In CKEditor, add a paragraph
  8. Search for 'My test paragraph'
  9. Observe that this paragraph still exists. It should have been deleted along with the node.

Proposed resolution

Delete all referenced paragraphs when deleting the node, unless they are used elsewhere.

Remaining tasks

Implement.

User interface changes

None.

API changes

None.

Data model changes

None.

Original report

I was unable to find an answer on my own. Is there a way, either via UI or code, to delete embedded paragraphs (orphaned or at all)? If not, is this something that is planned as a feature?

πŸ› Bug report
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States mel-miller Oakland, CA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024