nextcloud / notes

✎ Distraction-free notes and writing
https://apps.nextcloud.com/apps/notes
GNU Affero General Public License v3.0
598 stars 132 forks source link

Weird behavior when clicking on text in code block, Firefox browser #1306

Closed Szwendacz99 closed 1 month ago

Szwendacz99 commented 1 month ago

When clicking on text inside code block in rich text mode, the text lines get surrounded by weird lines. When this is the case, then very weird things happend when trying to edit this code, like inserting newline using enter places this newline 2 lines further, or the whole page jumps up few screens.

Steps to reproduce

  1. Use Firefox web browser (can be private window for clean cache)
  2. switch to rich text mode
  3. create note
  4. create code block
  5. insert multiline code inside that codeblock
  6. try starting to edit this code by clicking somewhere inside of that code, like in the middle of a line, where there are characters also after the cursor

Expected behaviour

nothing special, cursor jumps where I have clicked

Actual behaviour

All lines inside the code block are surrounded with weird highlight, and then using backspace or enter have weird, unexpected behavior

Screenshots

image

Server

Please complete the following information.

Client

Please complete the following information.

Szwendacz99 commented 1 month ago

The issue is already made in text app repo: issue link. Therefore I will close this issue here.