N°7552 - Move CKEditor from to npm dependencies

This commit is contained in:
Stephen Abello
2024-07-24 14:19:52 +02:00
parent 35a7d907cd
commit 054fd8798b
126 changed files with 210 additions and 7981 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;
}