mirror of
https://github.com/heyman/heynote.git
synced 2025-06-27 21:12:00 +02:00
Turn off CodeMirror's use of EditContext since a bug in Chrome causes the IME interface to show up in the wrong position
This commit is contained in:
parent
a4519ba6ef
commit
c1be3afe5d
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user