Added MediaEmbed to CKEditor

This commit is contained in:
James Purser 2024-01-14 21:27:42 +11:00
parent aa8597512f
commit 385631bf32

View file

@ -77,6 +77,7 @@ globalThis.CKEditorConfig = {
CKEditor5.indent.Indent,
CKEditor5.link.Link,
CKEditor5.list.List,
CKEditor5.mediaEmbed.MediaEmbed,
CKEditor5.paragraph.Paragraph,
CKEditor5.pasteFromOffice.PasteFromOffice,
CKEditor5.sourceEditing.SourceEditing,
@ -104,12 +105,15 @@ globalThis.CKEditorConfig = {
// ui:'he',
// content:'he'
},
mediaEmbed: {
previewsInData: true
},
toolbar: [
'heading',
'|',
'bold', 'italic', 'link', 'bulletedList', 'numberedList',
'|',
'uploadImage', 'strapiMediaLib', 'insertTable',
'uploadImage', 'strapiMediaLib', 'insertTable','mediaEmbed',
'|',
'blockQuote',
'sourceEditing',