Skip to content

Commit

Permalink
feat: Update note editor config to hide unnecessary extensions in sin…
Browse files Browse the repository at this point in the history
…gle note view - EXO-74712 - Meeds-io/MIPs#161 (#1164)
  • Loading branch information
sofyenne committed Oct 16, 2024
1 parent 8b3afa6 commit 7b75e59
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CKEDITOR.editorConfig = function (config) {
if (webPageNote) {
blocksToolbarGroup.splice(blocksToolbarGroup.indexOf('tagSuggester'), 1);
blocksToolbarGroup.splice(blocksToolbarGroup.indexOf('InsertOptions'), 1);
blocksToolbarGroup.splice(blocksToolbarGroup.indexOf('attachFile'), 1);
}
const toolbar = [
{name: 'accessibility', items: ['A11ychecker']},
Expand Down Expand Up @@ -69,9 +70,12 @@ CKEDITOR.editorConfig = function (config) {
},
{
name: 'blocks',
items: ['Blockquote', 'attachFile']
items: ['Blockquote']
},
];
if (!webPageNote) {
mobileToolbar[mobileToolbar.findIndex(item => item.name ==='blocks')].items.push('attachFile');
}
let extraPlugins = `a11ychecker,balloonpanel,indent,indentblock,indentlist,codesnippet,sharedspace,copyformatting,table,tabletools,embedsemantic,autolink,colordialog${!webPageNote && ',tagSuggester' || ''},emoji,link,font,justify,widget,${!webPageNote && ',insertOptions' || ''},contextmenu,tabletools,tableresize,toc,linkBalloon,suggester`;
let removePlugins = `image,confirmBeforeReload,maximize,resize,autoembed${webPageNote && ',tagSuggester' || ''}`;

Expand Down

0 comments on commit 7b75e59

Please sign in to comment.