I have a problem using ckEditor in nextjs14…
I have done according to the document and I have done the settings according to the code I have written
see output image
i have use @ckeditor/ckeditor5-react & ckeditor5
I expect it to be numbered when I click on a numbered list, or enlarged when I select a word and click on Heading.
<CKEditor
editor={ ClassicEditor }
config={ {
toolbar: {
items: [
'undo',
'redo',
'|',
'heading',
'|',
'fontSize',
'fontFamily',
'|',
'bold',
'italic',
'underline',
'strikethrough',
'removeFormat',
'|',
'link',
'insertImage',
'ckbox',
'mediaEmbed',
'insertTable',
'highlight',
'blockQuote',
'|',
'alignment',
'|',
'bulletedList',
'numberedList',
'multiLevelList',
'|',
'accessibilityHelp'
]
},
plugins: [
Alignment,
Autoformat,
AutoLink,
Autosave,
BlockQuote,
Bold,
FontSize,
FontFamily,
Heading,
Highlight,
Image,
ImageCaption,
ImageResize,
ImageStyle,
ImageToolbar,
ImageUpload,
Italic,
Link,
List,
MediaEmbed,
Mention,
Paragraph,
PasteFromOffice,
PictureEditing,
RemoveFormat,
Strikethrough,
Table,
TableCaption,
TableCellProperties,
TableColumnResize,
TableProperties,
TableToolbar,
Underline,
Undo,
],
heading: {
options: [
{
model: 'paragraph',
title: 'Paragraph',
class: 'ck-heading_paragraph'
},
{
model: 'heading1',
view: 'h1',
title: 'Heading 1',
class: 'ck-heading_heading1'
},
{
model: 'heading2',
view: 'h2',
title: 'Heading 2',
class: 'ck-heading_heading2'
},
{
model: 'heading3',
view: 'h3',
title: 'Heading 3',
class: 'ck-heading_heading3'
}
]
},
image: {
toolbar: [ 'imageTextAlternative', '|', 'ckboxImageEdit' ]
},
initialData: '<p>Hello from CKEditor 5 in React!</p>'
} }
/>