Skip to content

Commit

Permalink
Add inline editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedwiper committed Mar 3, 2025
1 parent 99a80c1 commit 686dbe2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hpi-schul-cloud/ckeditor",
"version": "1.2.0",
"version": "1.3.0",
"description": "Custom version of CKEditor5 for the Schulcloud-Verbund-Software-Client",
"author": "Dataport Schulcloud-Verbund-Software Team",
"repository": {
Expand All @@ -27,6 +27,7 @@
"@ckeditor/ckeditor5-dev-utils": "^32.1.2",
"@ckeditor/ckeditor5-editor-balloon": "^37.1.0",
"@ckeditor/ckeditor5-editor-classic": "^37.1.0",
"@ckeditor/ckeditor5-editor-inline": "^37.1.0",
"@ckeditor/ckeditor5-essentials": "^37.1.0",
"@ckeditor/ckeditor5-heading": "^37.1.0",
"@ckeditor/ckeditor5-highlight": "^37.1.0",
Expand Down
6 changes: 5 additions & 1 deletion src/ckeditor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { BalloonEditor as BalloonEditorBase } from "@ckeditor/ckeditor5-editor-balloon";
import { ClassicEditor as ClassicEditorBase } from "@ckeditor/ckeditor5-editor-classic";
import { InlineEditor as InlineEditorBase } from "@ckeditor/ckeditor5-editor-inline";
import Autoformat from "@ckeditor/ckeditor5-autoformat/src/autoformat";
import BlockQuote from "@ckeditor/ckeditor5-block-quote/src/blockquote.js";
import Bold from "@ckeditor/ckeditor5-basic-styles/src/bold.js";
Expand Down Expand Up @@ -35,6 +36,7 @@ import "./custom-content-styles.css";

class BalloonEditor extends BalloonEditorBase {}
class ClassicEditor extends ClassicEditorBase {}
class InlineEditor extends InlineEditorBase {}

const plugins = [
Autoformat,
Expand Down Expand Up @@ -106,13 +108,15 @@ const config = {

BalloonEditor.builtinPlugins = plugins;
ClassicEditor.builtinPlugins = plugins;
InlineEditor.builtinPlugins = plugins;

BalloonEditor.defaultConfig = config;
ClassicEditor.defaultConfig = config;
InlineEditor.defaultConfig = config;

addMissingTranslationsDe();
addMissingTranslationsEn();
addMissingTranslationsEs();
addMissingTranslationsUk();

export default { BalloonEditor, ClassicEditor };
export default { BalloonEditor, ClassicEditor, InlineEditor };

0 comments on commit 686dbe2

Please sign in to comment.