From e87720a8385a8675b4f13ea56013c4c0e8a2fcce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 3 Aug 2025 20:00:36 +0200 Subject: [PATCH] Fixed CKEDITOR --- assets/ckeditor/plugins/extendedMarkdown.js | 3 +-- assets/ckeditor/plugins/extendedMarkdownInline.js | 2 +- assets/controllers/elements/ckeditor_controller.js | 1 + package.json | 1 - yarn.lock | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/ckeditor/plugins/extendedMarkdown.js b/assets/ckeditor/plugins/extendedMarkdown.js index 8833c46a..a0800a24 100644 --- a/assets/ckeditor/plugins/extendedMarkdown.js +++ b/assets/ckeditor/plugins/extendedMarkdown.js @@ -18,7 +18,7 @@ */ import { Plugin } from 'ckeditor5'; -import {MarkdownGfmDataProcessor} from '@ckeditor/ckeditor5-markdown-gfm'; +import {MarkdownGfmDataProcessor} from 'ckeditor5'; const ALLOWED_TAGS = [ //Common elements @@ -34,7 +34,6 @@ const ALLOWED_TAGS = [ //Block elements 'span', - 'p', 'img', diff --git a/assets/ckeditor/plugins/extendedMarkdownInline.js b/assets/ckeditor/plugins/extendedMarkdownInline.js index 3dbd08e0..695e7089 100644 --- a/assets/ckeditor/plugins/extendedMarkdownInline.js +++ b/assets/ckeditor/plugins/extendedMarkdownInline.js @@ -18,7 +18,7 @@ */ import {Plugin} from 'ckeditor5'; -import {MarkdownGfmDataProcessor} from '@ckeditor/ckeditor5-markdown-gfm'; +import {MarkdownGfmDataProcessor} from 'ckeditor5'; const ALLOWED_TAGS = [ //Common elements diff --git a/assets/controllers/elements/ckeditor_controller.js b/assets/controllers/elements/ckeditor_controller.js index 43840327..9640b226 100644 --- a/assets/controllers/elements/ckeditor_controller.js +++ b/assets/controllers/elements/ckeditor_controller.js @@ -25,6 +25,7 @@ import { default as HTMLLabelEditor } from "../../ckeditor/html_label"; import {EditorWatchdog} from 'ckeditor5'; +import "ckeditor5/ckeditor5.css";; import "../../css/components/ckeditor.css"; /* stimulusFetch: 'lazy' */ diff --git a/package.json b/package.json index 6fd595aa..7ff2057f 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@algolia/autocomplete-theme-classic": "^1.17.0", "@ckeditor/ckeditor5-dev-translations": "^43.0.1", "@ckeditor/ckeditor5-dev-utils": "^43.0.1", - "@ckeditor/ckeditor5-markdown-gfm": "^46.0.0", "@jbtronics/bs-treeview": "^1.0.1", "@part-db/html5-qrcode": "^3.1.0", "@zxcvbn-ts/core": "^3.0.2", diff --git a/yarn.lock b/yarn.lock index 5ca6bb8e..00b75183 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1341,7 +1341,7 @@ "@ckeditor/ckeditor5-utils" "46.0.0" ckeditor5 "46.0.0" -"@ckeditor/ckeditor5-markdown-gfm@46.0.0", "@ckeditor/ckeditor5-markdown-gfm@^46.0.0": +"@ckeditor/ckeditor5-markdown-gfm@46.0.0": version "46.0.0" resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-markdown-gfm/-/ckeditor5-markdown-gfm-46.0.0.tgz#8374793da3aedbd3ec42bd85793dc4d6f53ca4df" integrity sha512-uDHTS+VrmUY/bZWDQv/9nOOSMnfLOymAmvQ/oTNPlIZQXxprDU1cH221TxOZpvE0u1SHC3Spomt38Ea6yqzGZw==