There is 1 update, 1 comment.
 
 
ChartJS Integration / cid:jira-generated-image-avatar-4594e082-9a58-4320-9505-d800f33b96a5 CHARTJS-39 Open

Inserted chart in WYSIWYG editor is not visible

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-7a0cbea9-f1d5-40d6-97a8-89ea8808c96d Changes by Simon Urli on 06/Jan/25 16:32
 
Attachment: screenshot-1.png
 
 

1 comment

 
cid:jira-generated-image-avatar-7a0cbea9-f1d5-40d6-97a8-89ea8808c96d Simon Urli on 06/Jan/25 16:34
 

Marius Dumitru Florea it took me a while but in the end I discovered what was the problem. It's not a bug in ChartJS, we already listen on xwiki:dom:updated events. Apparently it's a feature in XWiki, we have this option in WYSIWYG editor administration: _thumb_43044.png . This is not set by default, and once it's set then I don't have the bug anymore. The reason is that this option prevents from loading the JSX hook in https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/ContentSheet.xml#L76-L78. But I'm a bit surprised about this behaviour, since as you said yourself we don't use that flag for the inline editor: making the JS hook working properly in the inline editor...

So at this point it feels like either we should also use that config in the inline editor, or we should remove it completely. WDYT?