N°5298 - Merge work from 9bf0addc9c with changes from the WIP CKEditor build repo

This commit is contained in:
Molkobain
2024-05-24 23:35:36 +02:00
parent c178fa4677
commit a956627187
88 changed files with 461 additions and 195 deletions

View File

@@ -0,0 +1,24 @@
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;
}