You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using markdown editor the cursor if suppose is on line 9 and we are trying to do backspace it ends up editing line 8. This happens when I close the template sidebar.
Steps to Reproduce
Create new page
Choose template
Start editing text
Close the sidebar
And now cursor is at one line but ends up editing other line (this especially happens if you are trying to navigate using arrow keys, backspace, delete.)
Expected Behaviour
The cursor should not change position when the template sidebar is closed and should only edit the line or text that it is on.
Screenshots or Additional Context
No response
Exact BookStack Version
v21.12.1
PHP Version
No response
Hosting Environment
Hosting on raspberry pi 2 using docker.
The text was updated successfully, but these errors were encountered:
quaintdev
changed the title
[Bug Report]: Weird behaviour while editing a page if template sidebar is used
[Bug Report]: Weird behaviour while editing a page if template sidebar is closed
Jan 21, 2022
Intended to fix positioning quirks caused by changing codemirror
instance size when you have lines that wrap and cause line height
changes. Often caused by editor toolbox expand/collapse.
This adds a debounced resize observer to refresh editor layout on size
change.
Also tweaks toolbox expand/collapse to more consistently set aria
attribute.
For #3186
Thanks for reporting @quaintdev, I could confirm this.
From my testing, I don't think this was specifically due to the template system, but could occur whenever the markdown editor box resized (Likely due to sidebar expand/collapse) while having content that may span over a single line. The editor would use old line positioning for the cursor then correct itself after typing.
I have patched this in aaa2205, so that the editor layout is refreshed after resize.
This will be part of the next patch release.
Describe the Bug
While using markdown editor the cursor if suppose is on line 9 and we are trying to do backspace it ends up editing line 8. This happens when I close the template sidebar.
Steps to Reproduce
Expected Behaviour
The cursor should not change position when the template sidebar is closed and should only edit the line or text that it is on.
Screenshots or Additional Context
No response
Exact BookStack Version
v21.12.1
PHP Version
No response
Hosting Environment
Hosting on raspberry pi 2 using docker.
The text was updated successfully, but these errors were encountered: