Merge pull request #346 from heyman/fix-ime-positioning

Fix wrong positioning if IME interface (for Chinese input)
This commit is contained in:
Jonatan Heyman 2025-06-12 14:38:26 +02:00 committed by GitHub
commit d34980456f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,6 +29,12 @@ import { useHeynoteStore } from "../stores/heynote-store.js";
import { useErrorStore } from "../stores/error-store.js"; import { useErrorStore } from "../stores/error-store.js";
// Turn off the use of EditContext, since Chrome has a bug (https://issues.chromium.org/issues/351029417)
// that causes it to position the IME interface (for chinese input) incorrectly. One the bug is fixed (in Electron)
// we should be able to remove this. For more details see: https://github.com/heyman/heynote/issues/343
EditorView.EDIT_CONTEXT = false
export class HeynoteEditor { export class HeynoteEditor {
constructor({ constructor({
element, element,