fix(ckeditor5): reintroduce block handle for floating editor

This commit is contained in:
Elian Doran
2025-05-05 15:43:14 +03:00
parent 10e5852a67
commit 910b0d280d
9 changed files with 54 additions and 125 deletions

View File

@@ -1,3 +1,22 @@
import "ckeditor5/ckeditor5.css";
export { EditorWatchdog, BalloonEditor, DecoupledEditor } from "ckeditor5";
export * from "./plugins.js";
import { COMMON_PLUGINS, POPUP_EDITOR_PLUGINS } from "./plugins";
import { BalloonEditor, DecoupledEditor } from "ckeditor5";
export { EditorWatchdog } from "ckeditor5";
export class AttributeEditor extends BalloonEditor {
static override get builtinPlugins() {
return [];
}
}
export class ClassicEditor extends DecoupledEditor {
static override get builtinPlugins() {
return COMMON_PLUGINS;
}
}
export class PopupEditor extends BalloonEditor {
static override get builtinPlugins() {
return POPUP_EDITOR_PLUGINS;
}
}