There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-14e5a876-8666-4d3c-9999-560479adca21 XWIKI-22210 Open

Blocks of {{code}} are acting strange

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-e3c9d03e-084e-4279-a9ee-2b7a05f10f68 Marius Dumitru Florea on 01/Jul/24 14:28
 

This is not related to the code macro. It behaves the same with any macro that is called inline (for those that support inline mode of course). And it's a bug in the standard CKEditor regarding how inline widgets are handled. We use CKEditor widgets to wrap and protect macro output. The problem can be reproduced with https://ckeditor.com/docs/ckeditor4/latest/examples/placeholder.html where placeholders are inline widgets.

My question for you is why do you have to use the code macro inline. You say "block of code" but that is not a block if you use it inline, between text. If code / syntax highlighting for those inline snippets is not critical then you could use instead the Typewriter style which generates the ##foo## syntax.