`composing`の値を見る。[[CodeMirror 5]]と[[CodeMirror 6]]でプロパティが違うので注意。 ```ts isIMEOn(): boolean { if (!this.app.workspace.getActiveViewOfType(MarkdownView)) { return false; } const markdownView = this.app.workspace.activeLeaf!.view as MarkdownView; const cm5or6: any = (markdownView.editor as any).cm; // cm6 if (cm5or6?.inputState?.composing > 0) { return true; } // cm5 return !!cm5or6?.display?.input?.composing; } ```