mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
25 lines
905 B
TypeScript
25 lines
905 B
TypeScript
import { HtmlDataProcessor, type ViewDocument, type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
|
|
export default class iTopDataProcessor extends HtmlDataProcessor {
|
|
/**
|
|
* HTML data processor used to process HTML if we detect changes
|
|
* @private
|
|
*/
|
|
private _htmlDP;
|
|
/**
|
|
* Initial value of the editor, we'll return it if we don't detect any changes
|
|
* @private
|
|
*/
|
|
private readonly _initialValue;
|
|
/**
|
|
* Transformed initial value of the editor, we'll use it to detect changes
|
|
* @private
|
|
*/
|
|
private _transformedInitialValue;
|
|
/**
|
|
* Creates a new instance of the Markdown data processor class.
|
|
*/
|
|
constructor(document: ViewDocument, initialValue: string, transformedInitialValue: string);
|
|
setTransformedInitialValue(transformedInitialValue: string): void;
|
|
toData(viewFragment: ViewDocumentFragment): string;
|
|
}
|