/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module source-editing-enhanced/ui/codeeditorview */ import { View } from "@ckeditor/ckeditor5-ui"; import type { Locale } from "@ckeditor/ckeditor5-utils"; import { type CodeMirrorEditorConfig } from "../utils/createcodemirroreditor.js"; /** * A view that represents a code editor. Internally, it renders a CodeMirror instance. It provides * an API to interact with the editor. */ export declare class CodeEditorView extends View { /** * When set to `true`, the code editor becomes read-only. */ isReadOnly: boolean; /** * @inheritDoc */ constructor(locale: Locale, options: CodeEditorViewOptions); /** * @inheritDoc */ override render(): void; /** * @inheritDoc */ override destroy(): void; /** * Focuses the code editor. */ focus(): void; /** * Retrieves data from the editor. */ getData(): string; /** * Sets data to the editor. */ setData(data: string): void; /** * Toggles the read-only state of the editor. */ setReadOnly(readOnly: boolean): void; } /** * The configuration options for the code editor view. */ type CodeEditorViewOptions = Omit; export {};