There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-fa0924f6-a64c-4f1a-a871-e47077110d14 XWIKI-22210 Open

Blocks of {code} are acting strange

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-fb66549a-e79b-4e4c-be30-1a9b5611fc57 Changes by Iulia Balan on 06/Jun/24 11:09
 
Description: Having a block of \{code} in a page makes editing act weird.

This bug was reported by a client in these two tickets:  [ticket 1|https://jira.xwikisas.com/browse/XNSUPPORT-8493] and [ticket 2|https://jira.xwikisas.com/browse/XNSUPPORT-8494] 

I managed to reproduce them by following the following steps (similar to the ones that the client described) :



1) write text that has \{code} in it
2.1) if there is a space between the text and the block of code, the editing works as long as you don't write next to the block of code
2.2) if there is no space between the text and the block of code, adding a space will also add a new line
3) pressing Delete will delete the entire block of code, pressing Backspace will act as expected (delete the character on the left of the cursor). This is why I think the issue is related to the block of code being inserted in the page as a layout.
4) it is impossible to place the cursor before the block of code

The bug is not present while editing in source mode so this may be a workaround.