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,16 @@
/*
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
/**
* AppendITopClasses Plugin.
*
* Appends ibo-is-html-content class
*/
export default class AppendITopClasses extends Plugin {
constructor(editor: any);
static get pluginName(): string;
init(): void;
}

View File

@@ -0,0 +1,15 @@
/*
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
*/
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
/**
* DetectChanges Plugin.
*
*/
export default class DetectChanges extends Plugin {
constructor(editor: Editor);
init(): void;
static get pluginName(): string;
}

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;
}

View File

@@ -0,0 +1,8 @@
import { Command } from 'ckeditor5/src/core';
/**
* InsertHtmlCommand Command.
*
*/
export default class InsertHtmlCommand extends Command {
execute(sContent: string): void;
}

View File

@@ -0,0 +1,9 @@
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
/**
* InsertHtml Plugin.
*
*/
export default class InsertHtml extends Plugin {
static get pluginName(): string;
init(): void;
}

View File

@@ -0,0 +1,10 @@
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
/**
* KeyboardShortcut Plugin.
*
* - Dispatch submit event on the closest editor form when Ctrl+Enter pressed
*/
export default class KeyboardShortcut extends Plugin {
static get pluginName(): string;
init(): void;
}

View File

@@ -0,0 +1,10 @@
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
/**
* MentionsMarkup Plugin.
*
* - Converter for mentions
*/
export default class MentionsMarkup extends Plugin {
static get pluginName(): string;
init(): void;
}

View File

@@ -1,3 +1,8 @@
/*
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
*/
import { Plugin } from '@ckeditor/ckeditor5-core';
import { ContextualBalloon } from '@ckeditor/ckeditor5-ui';
import FormView from './object-shortcut.form-view';

View File

@@ -0,0 +1,10 @@
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
/**
* TriggerUpdateOnReady Plugin.
*
* - Trigger update event when editor is ready
*/
export default class TriggerUpdateOnReady extends Plugin {
static get pluginName(): string;
init(): void;
}