Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22210

Blocks of {{code}} are acting strange

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.1.0, 15.10.10
    • CKEditor
    • None
    • Firefox 126.0.1, XWiki 16.0.1
    • Unknown

    Description

      Having a block of code in a page makes editing act weird.

      I managed to reproduce them by following the following steps:

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cion Ion Claudiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: