@ckeditor/ckeditor5-collaboration-core
Version:
Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.
16 lines (15 loc) • 699 B
TypeScript
/**
* @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 collaboration-core/utils/sanitizeeditorconfig
*/
import type { Editor, EditorConfig } from '@ckeditor/ckeditor5-core';
/**
* A function that prepares config for internal editors removing all unnecessary plugins like RTC.
*
* @param editor The instance of the source editor.
* @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
*/
export declare function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;