import type { EditorView } from '@codemirror/view' import { applyCursorChange } from '@admin/utils/editor/apply-cursor-change' export function applyCursorChangeIfAvailable(view: EditorView | null, cursorPos: number): void { if (view) { applyCursorChange(view, cursorPos) } }