1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { type Collection, type Config, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils';
|
9 | import type Editor from './editor/editor.js';
|
10 | import type { EditorConfig } from './editor/editorconfig.js';
|
11 | import type Context from './context.js';
|
12 | import type { PluginDependencies, PluginInterface } from './plugin.js';
|
13 | import type PluginCollection from './plugincollection.js';
|
14 | declare const ContextPlugin_base: {
|
15 | new (): import("@ckeditor/ckeditor5-utils").Observable;
|
16 | prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
17 | };
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export default class ContextPlugin extends ContextPlugin_base implements PluginInterface {
|
33 | |
34 |
|
35 |
|
36 | readonly context: ContextInterface;
|
37 | |
38 |
|
39 |
|
40 | constructor(context: Context | Editor);
|
41 | /**
|
42 | * @inheritDoc
|
43 | */
|
44 | destroy(): void;
|
45 | /**
|
46 | * @inheritDoc
|
47 | */
|
48 | static get isContextPlugin(): true;
|
49 | }
|
50 | /**
|
51 | * The common interface of {@link module:core/context~Context} and {@link module:core/editor/editor~Editor}.
|
52 | */
|
53 | export interface ContextInterface {
|
54 | config: Config<Omit<EditorConfig, 'plugins' | 'substitutePlugins' | 'removePlugins' | 'extraPlugins'>>;
|
55 | plugins: PluginCollection<Context | Editor>;
|
56 | locale: Locale;
|
57 | t: LocaleTranslate;
|
58 | editors?: Collection<Editor>;
|
59 | }
|
60 | export type ContextPluginDependencies = PluginDependencies<Context | Editor>;
|
61 | export {};
|