After XWIKI-24157, this content:
before image:icon:accept after
produces this JavaScript exception:
Caused by: RangeError: Invalid content for node paragraph: <"before ", image, " after">
Same comment as for XWIKI-23860. We need to detect these limitations and prevent the editor from loading.