@ckeditor/ckeditor5-collaboration-core
Version:
Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.
26 lines (25 loc) • 1.13 kB
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/suggestions/integrations/generalhtmlsupport
*/
import { Plugin } from "@ckeditor/ckeditor5-core";
/**
* Registers every GHS-driven model attribute key with `SuggestionsConversion` so that changes to
* those attributes are recognised by Track Changes and the AI suggestion pipeline.
*
* Walks the full `DataSchema` and ignores `htmlSupport.allow` / `disallow`. Over-registered keys
* are harmless — the model schema rejects writes to disallowed attributes, so they never surface
* at runtime. Some keys are ghosts when a native plugin shadows the view name (e.g. `htmlStrong`
* never reaches the model when Bold is loaded, since Bold wins the upcast for `<strong>`). We
* still register them: when the native plugin is absent, GHS does land the attribute and the
* registration matters.
*/
export declare class SuggestionsConversionGeneralHtmlSupport extends Plugin {
/**
* @inheritDoc
*/
afterInit(): void;
}