WCF icon indicating copy to clipboard operation
WCF copied to clipboard

Codemirror loses the position of the content

Open cls-design opened this issue 3 months ago • 3 comments

Codemirror loses the position of the content when switching tabs if there are more than 306 lines.

For example, if you switch tabs at line 600 and then jump back, the content always scrolls back to line 306. This does not happen with lines below 306. I'm not sure why it happens at 306, but it may have something to do with the viewport.

Perhaps it's just a minor issue and easy to fix. Currently, it's very difficult to copy CSS variables from the other tab.

cls-design avatar Oct 29 '25 21:10 cls-design

@cls-design Can you please clarify which version of the Core you’ve experienced that issue with?

dtdesign avatar Nov 22 '25 14:11 dtdesign

Hi, this appears in 6.1 and 6.2. The line of code varies depending on the style:

Image

cls-design avatar Nov 22 '25 16:11 cls-design

I’m not able to reproduce this in Chrome, Safari and Firefox. For testing I have added a new style and pasted the contents of the style/ui/ckeditor.css which currently clocks in at 809 lines. In my case I scrolled to a location between 500-600 which is nowhere near the end and at the same time far beyond the mark of ~300 lines you mentioned above.

Please check your browser console if there is any error kind of message that may provides clues to what this may be caused by.

dtdesign avatar Nov 30 '25 22:11 dtdesign