zadam / trilium

Build your personal knowledge base with Trilium Notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(Bug report) Unexpected editor behaviours when KaTeX and non-ASCII characters are been input

zhang-stephen opened this issue · comments

Trilium Version

0.56.2

What operating system are you using?

Windows

What is your setup?

Server access only

Operating System Version

Windows 11 professional 22H2 22621.819

Description

Hi, there are serveral issues when I am taking my mathmetical notes...

My Environment:

  • Host: Windows 11 professional 22H2
  • Browser: Microsoft Edge 107.0.1418.56
  • IME: Microsoft Pinyin, the default Chinese IME
  • Trilium: 0.56.2, deployed by docker in Ubuntu 22.04.1 LTS

I am a Chinese, and I perfer use Chinese to take notes. Then I met following unexpected editor behaviours.

The first one, if a non-ascii punctuation mark, e.g. Chinese comma, were input after a inline math block, it would be duplicated, see this screenshot.
bug1

The second one, the cursor would jump to next line, if the next line is not empty, when following contents were input:

  1. some non-ascii characters, the words are preferred,
  2. inline math block,
  3. some non-ascii characters, the words are preferred,
  4. a non-ascii punctutation mark, e.g. Chinese comma,

Then you will see this:
bug2

The last one, I think it mixes the first and the second together. If the following contents were input, you will see this:

  1. some non-ascii characters, the words are preferred,
  2. inline math block,
  3. a non-ascii punctutation mark, e.g. Chinese comma, and repeat this step for serveral times,

bug3

Hi, @zadam, could you give some comments on this issue?

I have tried more...
I thought it is caused by other softwares, which could modify global keyboard shortcuts, but this issue still occurs if I exit those softwares completely.
Then I tried to open my notes in Firefox 107.0, this issue disappeared... I guessed it is caused by extensions, but it still occurs after all extensions disabled.
And I tried use rime to take place of Microsoft Pinyin, it didn't work neither.

Maybe it a CKEditor bug, with difference between Firefox and Microsoft Edge?
I cannot verify this hypothesis by myself.

I think it is same with #3347?

P.S.: It could be reproduced on Trilium Windows Edition.

commented

Hi, unfortunately I have close to 0 expertise on IME/CJK etc. I suspect it's something related to CKEditor (I know they keep working on IME issues) or with the KaTeX plugin, but hard for me to say ...

Thanks for the reply. It seems there is only way, use firefox, to avoid this issue...

was that fixed already ? and the problem was/is only in edge or all chromium browsers (chrome,opera,vivaldi) ?