mirror of https://github.com/TriliumNext/Notes
chore(ckeditor5): integrate basic plugins
parent
e1af7eba93
commit
8cc8dc2582
@ -1,17 +0,0 @@
|
|||||||
/**
|
|
||||||
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
||||||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
||||||
*/
|
|
||||||
|
|
||||||
// The editor creator to use.
|
|
||||||
import { BalloonEditor as BalloonEditorBase } from "ckeditor5";
|
|
||||||
import { BlockToolbar } from "ckeditor5";
|
|
||||||
import './theme/theme.css';
|
|
||||||
import { COMMON_PLUGINS } from './config.js';
|
|
||||||
|
|
||||||
export default class BalloonEditor extends BalloonEditorBase {
|
|
||||||
public static override builtinPlugins = [
|
|
||||||
...COMMON_PLUGINS,
|
|
||||||
BlockToolbar
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
/**
|
|
||||||
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
||||||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
||||||
*/
|
|
||||||
|
|
||||||
// The editor creator to use.
|
|
||||||
import { DecoupledEditor as DecoupledEditorBase } from "ckeditor5";
|
|
||||||
import './theme/theme.css';
|
|
||||||
import { COMMON_PLUGINS } from './config.js';
|
|
||||||
|
|
||||||
export default class DecoupledEditor extends DecoupledEditorBase {
|
|
||||||
public static override builtinPlugins = [
|
|
||||||
...COMMON_PLUGINS,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@ -1,3 +1,2 @@
|
|||||||
export { EditorWatchdog } from "ckeditor5";
|
export { EditorWatchdog, BalloonEditor, DecoupledEditor } from "ckeditor5";
|
||||||
export { default as BalloonEditor } from "./ckeditor_balloon.js";
|
export * from "./plugins.js";
|
||||||
export { default as DecoupledEditor } from "./ckeditor_decoupled.js";
|
|
||||||
|
|||||||
Loading…
Reference in New Issue