Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/SignatureSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

</style>
29 changes: 26 additions & 3 deletions src/components/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
Base64UploadAdapter,
BlockQuote,
Bold,
DecoupledEditor,
ClassicEditor,
DropdownView,
Essentials,
FindAndReplace,
Expand All @@ -46,6 +46,7 @@
Mention,
Paragraph,
RemoveFormat,
SourceEditing,
Strikethrough,
Subscript,
Superscript,
Expand Down Expand Up @@ -127,7 +128,7 @@
FindAndReplace,
GeneralHtmlSupport,
]
const toolbar = ['undo', 'redo']
const toolbar = ['sourceEditing', 'undo', 'redo']

if (this.html) {
plugins.push(...[
Expand All @@ -148,6 +149,7 @@
RemoveFormat,
Base64UploadAdapter,
MailPlugin,
SourceEditing,
])
toolbar.unshift(...[
'heading',
Expand Down Expand Up @@ -177,7 +179,7 @@
emojiTribute: null,
textSmiles: [],
ready: false,
editor: DecoupledEditor,
editor: ClassicEditor,
config: {
licenseKey: 'GPL',
placeholder: this.placeholder,
Expand Down Expand Up @@ -207,7 +209,28 @@
itemRenderer: this.customRenderer,
},
],
},

Check failure on line 212 in src/components/TextEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Enforce new lines between multi-line properties in Vue components
htmlSupport: {
allow: [
'table',
'tbody',
'td',
'tfoot',
'th',
'thead',
'tr',
{
name: 'a',
attributes: true,
classes: true,
styles: true

Check failure on line 226 in src/components/TextEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Missing trailing comma
},
{
name: 'img',
styles: true,
}

Check failure on line 231 in src/components/TextEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Missing trailing comma
],
},
},
}
},
Expand Down
Loading