@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
30 lines (29 loc) • 1.22 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 track-changes/integrations/generalhtmlsupport
*/
import { Plugin } from "@ckeditor/ckeditor5-core";
/**
* Provides track changes plugin integration for the
* {@link module:html-support/generalhtmlsupport~GeneralHtmlSupport General HTML Support feature}.
*
* Two responsibilities:
*
* 1. Diffs the old/new value of GHS attribute suggestions (e.g. `htmlSectionAttributes`, `htmlSpan`)
* and emits a description. Inline styles are listed by name + value (`color (blue)`); any class
* change collapses to a single `style` label, any HTML-attribute change to a single `metadata`
* label — opaque class/attribute names don't end up in the sidebar. Set and Remove segments render
* on separate lines.
*
* 2. Registers an element label per GHS-known model so insertion/deletion descriptions read with
* the HTML view name (`*Insert:* iframe`) rather than the raw model name (`*Insert:* htmlIframe`).
*/
export declare class TrackChangesGeneralHtmlSupport extends Plugin {
/**
* @inheritDoc
*/
afterInit(): void;
}