Skip to content

Commit

Permalink
feat: few features added to tinymce
Browse files Browse the repository at this point in the history
  • Loading branch information
nubsthead committed Mar 1, 2022
1 parent eff7025 commit 7479a21
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/store/integrations/composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import 'tinymce/plugins/paste';
import 'tinymce/plugins/help';
import 'tinymce/plugins/wordcount';
import 'tinymce/plugins/quickbars';
import 'tinymce/plugins/directionality';

import { Editor } from '@tinymce/tinymce-react';

Expand Down Expand Up @@ -108,17 +109,19 @@ const Composer: FC<ComposerProps> = ({
'paste',
'code',
'help',
'quickbars'
'quickbars',
'directionality'
],
toolbar: inline
? false
: // eslint-disable-next-line max-len
'formatselect | bold italic underline | forecolor backcolor | bullist numlist outdent indent | removeformat',
'fontselect fontsizeselect formatselect print | bold italic underline strikethrough | removeformat code | alignleft aligncenter alignright alignjustify | forecolor backcolor | bullist numlist outdent indent | ltr rtl',
quickbars_insert_toolbar: inline ? 'bullist numlist' : '',
quickbars_selection_toolbar: inline
? 'bold italic underline | forecolor backcolor | removeformat | quicklink'
: 'quicklink',
contextmenu: inline ? '' : ''
contextmenu: inline ? '' : '',
toolbar_mode: 'wrap'
}}
onEditorChange={_onEditorChange}
{...rest}
Expand Down

0 comments on commit 7479a21

Please sign in to comment.