From 6b67ac7a41a68d3207a9253fd3307fca819fc8aa Mon Sep 17 00:00:00 2001 From: greta Date: Mon, 19 Jan 2026 11:05:12 +0100 Subject: [PATCH 1/3] feat: add html and source editing support Signed-off-by: greta --- src/components/TextEditor.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/TextEditor.vue b/src/components/TextEditor.vue index d30f4cc7cc..8f89931959 100644 --- a/src/components/TextEditor.vue +++ b/src/components/TextEditor.vue @@ -30,7 +30,7 @@ import { Base64UploadAdapter, BlockQuote, Bold, - DecoupledEditor, + ClassicEditor, DropdownView, Essentials, FindAndReplace, @@ -46,6 +46,7 @@ import { Mention, Paragraph, RemoveFormat, + SourceEditing, Strikethrough, Subscript, Superscript, @@ -127,7 +128,7 @@ export default { FindAndReplace, GeneralHtmlSupport, ] - const toolbar = ['undo', 'redo'] + const toolbar = ['sourceEditing', 'undo', 'redo'] if (this.html) { plugins.push(...[ @@ -148,6 +149,7 @@ export default { RemoveFormat, Base64UploadAdapter, MailPlugin, + SourceEditing, ]) toolbar.unshift(...[ 'heading', @@ -177,7 +179,7 @@ export default { emojiTribute: null, textSmiles: [], ready: false, - editor: DecoupledEditor, + editor: ClassicEditor, config: { licenseKey: 'GPL', placeholder: this.placeholder, From d4a8743caca8da951905d23d1eb4bd814a12afae Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 23 Jan 2026 18:18:14 +0100 Subject: [PATCH 2/3] fixup! feat: add html and source editing support Signed-off-by: Daniel Kesselberg --- src/components/TextEditor.vue | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/components/TextEditor.vue b/src/components/TextEditor.vue index 8f89931959..1a8288985f 100644 --- a/src/components/TextEditor.vue +++ b/src/components/TextEditor.vue @@ -210,6 +210,27 @@ export default { }, ], }, + htmlSupport: { + allow: [ + 'table', + 'tbody', + 'td', + 'tfoot', + 'th', + 'thead', + 'tr', + { + name: 'a', + attributes: true, + classes: true, + styles: true + }, + { + name: 'img', + styles: true, + } + ], + }, }, } }, From 2468695e0f27ffdb194ce9be0353a5d70974364c Mon Sep 17 00:00:00 2001 From: greta Date: Tue, 27 Jan 2026 16:59:32 +0100 Subject: [PATCH 3/3] fixup! feat: add html and source editing support Signed-off-by: greta --- src/components/SignatureSettings.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SignatureSettings.vue b/src/components/SignatureSettings.vue index 37ea36e799..d76a60be3f 100644 --- a/src/components/SignatureSettings.vue +++ b/src/components/SignatureSettings.vue @@ -271,9 +271,9 @@ export default { .warning-large-signature { color: darkorange; } - +// its a bit hard to make it work without this max-width in the modal because it overlaps with the sidebar of the modal :deep(.ck.ck-toolbar-dropdown>.ck-dropdown__panel) { - max-width: 34vw; + max-width: 19vw; }