Skip to content

editorLivePreviewField

Official

Use this CodeMirror @codemirror/state#StateField to check whether Live Preview is active

Import:

import { editorLivePreviewField } from 'obsidian';

Signature:

const editorLivePreviewField: StateField<boolean>

Type: StateField<boolean>