My users are freaking out because some content disappears after saving!
It seems that when some empty bullet lists are present in the content (see attached screenshot), the CP text area can't display it whereas the web view shows it without issue.
Anyway, somehow, this structure seems to cause the issue:
{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":[],"content":[{"type":"text","marks":[{"type":"textStyle"}],"text":" qui articulent pratique, rencontre et connaissance."}]}],"text":""},{"type":"listItem","content":[null],"text":""}]}
Removing the null node makes the content reappear.
I was unable to reproduce the problem by inserting an empty bullet point, but my user may be copying some content from Word or whatever…
Steps to reproduce
Somehow, create a bullet list with one empty paragraph
Save the entry
Re-open the entry
The admin is empty, but the live preview shows the content
Describe the bug
My users are freaking out because some content disappears after saving! It seems that when some empty bullet lists are present in the content (see attached screenshot), the CP text area can't display it whereas the web view shows it without issue. Anyway, somehow, this structure seems to cause the issue:
{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":[],"content":[{"type":"text","marks":[{"type":"textStyle"}],"text":" qui articulent pratique, rencontre et connaissance."}]}],"text":""},{"type":"listItem","content":[null],"text":""}]}
Removing the
null
node makes the content reappear.I was unable to reproduce the problem by inserting an empty bullet point, but my user may be copying some content from Word or whatever…
Steps to reproduce
Craft CMS version
Craft Pro 4.4.15
Plugin version
2.1.7
Multi-site?
No
Additional context
No response