Skip to content

Commit

Permalink
Add toolbar to CKEditor component
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-leod committed Nov 4, 2021
1 parent 9547a1d commit f421e17
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/form/RichText/CKEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ import * as React from 'react';
import { Except } from 'type-fest';

const Editor = (props: Except<CKEditorProps, 'editor'>) => (
<ReactCKE editor={ClassicEditor} {...props} />
<ReactCKE
editor={ClassicEditor}
config={{
toolbar: [
'heading',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
],
}}
{...props}
/>
);

// eslint-disable-next-line import/no-default-export
Expand Down

0 comments on commit f421e17

Please sign in to comment.