Problem/Motivation
Currently the Reusable Blocks view is using the default formatter for the body field, which causes a weird issue, the first time you create a Reusable block it renders properly in that view, but after edit the reusable block is shown as HTML code.
Steps to reproduce
- Create a reusable block.
- Check the block looking good in the reusable blocks view.
- Go to the content and edit the reusable block.
- Check the block is not looking good in the reusable blocks view.
Proposed resolution
By changing the formatter to Gutenberg the problem disappear.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Reusable - after_patch.png | 221.35 KB | deepalij |
| #4 | Reusable - before_patch.png | 185.17 KB | deepalij |
Issue fork gutenberg-3284050
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jidrone commentedPR created and moved to needs review.
Comment #4
deepalij commentedApplied merge request !31 from #2.
Applied successfully but with the warning as shown below:
The patch didn't resolve the issue.
Steps followed:


1. Install and enable Gutenberg
2. Create content where Gutenberg is enabled -> Add paragraph -> click on 3 dots to add the block in reusable block -> Select Add to reusable block -> Save
3. Go to content listing -> Reusable block tab
4. Observe the block (check before patch screenshot)
5. Now, edit the block content
6. Go to content listing -> Reusable block tab
7. Observe the block (check after patch screenshot)
8. Issue still exists
Needs work
Comment #5
jidrone commentedThis patch contains a hook update, did you run database updates?
Comment #6
marcofernandes commentedI confirm that it works after running database updates.
Comment #8
marcofernandes commented