- Issue created by @ceithamer728
- Merge request !108Add EmbeddedParagraphs and ParagraphLibraryItem support β (Open) created by ceithamer728
- πΊπΈUnited States ceithamer728
In my initial patch, I did not take into account that when deleting a node the embedded paragraph entities don't get deleted.
Upon further testing I realized that importing embedded paragraphs that don't already exist was working and being created correctly but they were not displaying. The below error occurred on page load.
Drupal\entity_embed\Exception\EntityNotFoundException: Unable to load embedded embedded_paragraphs entity 487e7039-44b4-47aa-80c6-b6f777035c41. in Drupal\paragraphs_entity_embed\Plugin\Filter\ParagraphEmbedFilter->process() (line 154 of /home/ide/project/docroot/modules/contrib/paragraphs_entity_embed/src/Plugin/Filter/ParagraphEmbedFilter.php).
This is because the ckeditor ParagraphEmbedFilter is looking for
data-paragraph-revision-id
in the html first and if it finds that id it tries to load that embedded paragraph revision.My new commit strips the
data-paragraph-revision-id
attribute out of thedrupal-paragraph
element so ParagraphEmbedFilter will load by uuid instead.I've attached a patch as well.