Cursor misalignment when switching views

Operating system

macOS

Joplin version

3.5.13

Desktop version info

Joplin 3.5.13 (prod, darwin)

Editor

Markdown Editor

What issue do you have?

I've got an odd one. If I make edits in a note using the rich text editor and then toggle to the markdown view, I can't place the cursor where I want it. It jumps to some other location in the note. If I start to type, text appears in a random portion of the note different from where the cursor was located.

The only way to get the cursor to behave in the markdown editor after editing in the rich text view is to click to another note and back to the original note (and NOT switch to rich text).

If I keep Joplin in split-view, then I can switch between markdown and rich text without issue.

I tried disabling all plug-ins, renaming userstyle and userchome .css files, and restarting Joplin but still the same behavior. (I tried safe mode but there is no rich text in that mode)

I can't believe that I'm the only one who is experiencing this, so my question is, "what am I doing wrong to cause this behavior?"

thanks!

1 Like

After a little more investigation, it seems like this behavior is unique to Mac OS. My ThinkPad on Win 10 doesn’t exhibit that behavior. That should help narrow things down a bit.

Yes, I am experiencing this too. It is not a ‘random’ location for me when switching → I am usually scrolled all the way to the top. I did not know this was a MacOS specific thing, since all my devices are macs (and an iPhone). I have been able to 80% fix this but had to change a lot of things and am thinking of creating a post so it can be discussed and pushed to production.

Joplin 3.5.13 (prod, darwin)

Device: darwin, Apple M1
Sync Version: 3
Profile Version: 49
Keychain Supported: Yes
Alternative instance ID: -

Revision: 0c1511f

Backup: 1.5.1
Freehand Drawing: 4.2.0
Inline tags: 1.3.0
Joplin Batch: 0.2.2

This is what I have been able to achieve so far with code changes. Plannign to make a post in the forum about it.