Updated ckeditor and use new mono package

This commit is contained in:
Jan Böhmer 2025-08-03 19:46:57 +02:00
parent 9eb8e33e09
commit 74fef78120
14 changed files with 1770 additions and 892 deletions

View file

@ -22,7 +22,7 @@ import PartDBLabelEditing from "./PartDBLabelEditing";
import "./PartDBLabel.css";
import Plugin from "@ckeditor/ckeditor5-core/src/plugin";
import {Plugin} from "ckeditor5";
export default class PartDBLabel extends Plugin {
static get requires() {
@ -32,4 +32,4 @@ export default class PartDBLabel extends Plugin {
static get pluginName() {
return 'PartDBLabel';
}
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Command from '@ckeditor/ckeditor5-core/src/command';
import {Command} from 'ckeditor5';
export default class PartDBLabelCommand extends Command {
execute( { value } ) {
@ -47,4 +47,4 @@ export default class PartDBLabelCommand extends Command {
this.isEnabled = isAllowed;
}
}
}

View file

@ -17,11 +17,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import {Plugin} from 'ckeditor5';
import PartDBLabelCommand from "./PartDBLabelCommand";
import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils';
import Widget from '@ckeditor/ckeditor5-widget/src/widget';
import { toWidget } from 'ckeditor5';
import {Widget} from 'ckeditor5';
export default class PartDBLabelEditing extends Plugin {
static get requires() { // ADDED
@ -102,4 +102,4 @@ export default class PartDBLabelEditing extends Plugin {
}
}
}
}

View file

@ -17,14 +17,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import {Plugin} from 'ckeditor5';
require('./lang/de.js');
import { addListToDropdown, createDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
import { addListToDropdown, createDropdown } from 'ckeditor5';
import Collection from '@ckeditor/ckeditor5-utils/src/collection';
import Model from '@ckeditor/ckeditor5-ui/src/model';
import {Collection} from 'ckeditor5';
import {Model} from 'ckeditor5';
export default class PartDBLabelUI extends Plugin {
init() {
@ -187,4 +187,4 @@ function getDropdownItemsDefinitions(t) {
}
return itemDefinitions;
}
}