If you select a paragraph to delete and then cancel the action in the confirmation, the text is not restored in the edit form.
Images of before and after the cancel are attached.
How to reproduce:
- Create a simplytest.me project using paragraphs_features.
- Add a paragraph type of Text with just a long formatted text field.
- Add a paragraph entity reference field to the basic content type.
- Set up the display widget to use modal and delete confirmation.
- Create a basic page with a couple of text paragraphs and save it.
- Edit the page and remove one of the paragraphs
- Select Cancel in the confirmation
The text paragraph comes back but the edit form is empty. Refreshing the page will bring it back.
Also, if you save the page after a cancel action blanks the text, you do not lose the text. So just a UI issue and not a data loss problem.

| Comment | File | Size | Author |
|---|---|---|---|
| pf-post-cancel-remove.png | 14.25 KB | cgmonroe | |
| pf-pre-remove.png | 18.64 KB | cgmonroe |
Comments
Comment #2
mtodor commentedI can confirm this. Looks like CKEditor is broken after "Cancel" action.
=> Other way to reset data is -> collapse -> expand broken paragraph.
Comment #3
mtodor commented@cgmonroe for some reason CKEditor goes in bad stated after hiding it.
This should fix the problem: https://github.com/thunder/paragraphs_features/pull/21 - it would be good if you can test it. To get patch file from PR on github, justs add
.diffto link: https://patch-diff.githubusercontent.com/raw/thunder/paragraphs_features...We still need tests that will cover this problem.
Comment #4
mtodor commentedPR - is ready for review.
Comment #6
mtodor commentedThe issue should be fixed with version 1.4.