UNPKG

@ckeditor/ckeditor5-core

Version:

The core architecture of CKEditor 5 – the best browser-based rich text editor.

17 lines (16 loc) • 752 B
/** * @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 */ import { Editor } from "./editor/editor.js"; import { Context } from "./context.js"; /** * Answers what an error came from, given the context it was thrown with. * * Returns every editor the error can be attributed to, or the contexts when no editor claims it. The list is * empty when no answer can be given. That is not necessarily a bug: it also happens for a context that is * `null`, omitted, or an object that shares nothing with any editor currently running. * * @internal */ export declare function resolveErrorSources(context: unknown): Array<Editor | Context>;