I've got the basic CKeditor5 installed -- but I am unable to add some toolbars to the plugin.
https://www.npmjs.com/package/ckeditor5
import { CKEditor } from '@ckeditor/ckeditor5-react';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
'subscript', 'superscript' are not showing up? I think its part of the basic styles feature -but do I need to include it here? replace the type of editor it is? Why isn't this working?
<CKEditor
editor={ClassicEditor}
config={{
toolbar: {
items: [
'heading', '|',
'fontfamily', 'fontsize', '|',
'alignment', '|',
'fontColor', 'fontBackgroundColor', '|',
'bold', 'italic', 'strikethrough', 'underline', 'subscript', 'superscript', '|',
'link', '|',
'outdent', 'indent', '|',
'bulletedList', 'numberedList', 'todoList', '|',
'code', 'codeBlock', '|',
'insertTable', '|',
'uploadImage', 'blockQuote', '|',
'undo', 'redo'
],
shouldNotGroupWhenFull: true
}
}}
data={input.value}
onReady={ editor => {
// You can store the "editor" and use when it is needed.
//console.log( 'Editor is ready to use!', editor );
}}
onChange={ ( event, editor ) => {
const value = editor.getData();
//console.log( { event, editor, value } );
input.onChange(value);
onHandle(input.name, value);
}}
onBlur={ ( event, editor ) => {
//console.log( 'Blur.', editor );
}}
onFocus={ ( event, editor ) => {
//console.log( 'Focus.', editor );
}}
/>