zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.18k stars 1.9k forks source link

(Bug report) the in-line link is created at the top of the current note instead of where the text cursor was #4063

Open AndrewPluzhnikov opened 1 year ago

AndrewPluzhnikov commented 1 year ago

Trilium Version

Version 0.60.4 (0.60.4)

What operating system are you using?

macOS

What is your setup?

Local (no sync)

Operating System Version

macOS Ventura 13.4.1 (22F82)

Description

When adding a link to a new note with the @ key, the in-line link is created at the top of the current note instead of where the text cursor was.

This only happens if you click on a note type to create the new note instead of hitting the enter key.

Attached is a gif of the interaction. Recording 2023-06-28 at 20 52 37

Error logs

No response

AndrewPluzhnikov commented 1 year ago

I was interested in trying to fix this bug myself, but I could not find where the handler for the @ key is.

If you could help me find where to start looking, I may be able to make progress on this bug.

soulsands commented 1 year ago

but I could not find where the handler for the @ key is.

It's in this repo. https://github.com/zadam/trilium-ckeditor5.