Skip to content

Commit

Permalink
improve ckeditor link tool
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed May 20, 2024
1 parent 2986c43 commit 2bd6bbd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions frontend/components/rich-editor.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,26 @@ const config = {
'tableProperties'
]
},
link: {
decorators: {
toggleDownloadable: {
mode: 'manual',
label: 'Downloadable',
attributes: {
download: 'file'
}
},
openInNewTab: {
mode: 'manual',
label: 'Open in a new tab',
defaultValue: false, // This option won't be selected by default.
attributes: {
target: '_blank',
rel: 'noopener noreferrer'
}
}
}
},
codeBlock: {
languages: [
{ language: 'plaintext', label: 'Plain text' },
Expand Down

0 comments on commit 2bd6bbd

Please sign in to comment.