|
| 1 | +/* eslint-disable */ |
| 2 | +const CKEConfig = () => ({ |
| 3 | + presets: { |
| 4 | + markdown: { |
| 5 | + field: { |
| 6 | + key: "markdown", |
| 7 | + value: "markdown", |
| 8 | + metadatas: { |
| 9 | + intlLabel: { |
| 10 | + id: "ckeditor.preset.markdown.label", |
| 11 | + defaultMessage: "Markdown output", |
| 12 | + }, |
| 13 | + }, |
| 14 | + }, |
| 15 | + editorConfig: { |
| 16 | + placeholder: "Markdown editor", |
| 17 | + plugins: [ |
| 18 | + globalThis.SH_CKE.Essentials, |
| 19 | + globalThis.SH_CKE.Autoformat, |
| 20 | + globalThis.SH_CKE.BlockQuote, |
| 21 | + globalThis.SH_CKE.Bold, |
| 22 | + globalThis.SH_CKE.Heading, |
| 23 | + globalThis.SH_CKE.Image, |
| 24 | + globalThis.SH_CKE.ImageCaption, |
| 25 | + globalThis.SH_CKE.ImageStyle, |
| 26 | + globalThis.SH_CKE.ImageToolbar, |
| 27 | + globalThis.SH_CKE.ImageUpload, |
| 28 | + globalThis.SH_CKE.Indent, |
| 29 | + globalThis.SH_CKE.Italic, |
| 30 | + globalThis.SH_CKE.Link, |
| 31 | + globalThis.SH_CKE.List, |
| 32 | + globalThis.SH_CKE.MediaEmbed, |
| 33 | + globalThis.SH_CKE.Paragraph, |
| 34 | + globalThis.SH_CKE.Table, |
| 35 | + globalThis.SH_CKE.TableCaption, |
| 36 | + globalThis.SH_CKE.TableCellProperties, |
| 37 | + globalThis.SH_CKE.TableColumnResize, |
| 38 | + globalThis.SH_CKE.TableProperties, |
| 39 | + globalThis.SH_CKE.TableToolbar, |
| 40 | + globalThis.SH_CKE.SourceEditing, |
| 41 | + globalThis.SH_CKE.StrapiMediaLib, |
| 42 | + globalThis.SH_CKE.StrapiUploadAdapter, |
| 43 | + globalThis.SH_CKE.Markdown, |
| 44 | + globalThis.SH_CKE.Strikethrough, |
| 45 | + globalThis.SH_CKE.HorizontalLine, |
| 46 | + globalThis.SH_CKE.FontFamily, |
| 47 | + globalThis.SH_CKE.FontSize, |
| 48 | + globalThis.SH_CKE.FontColor, |
| 49 | + globalThis.SH_CKE.FontBackgroundColor, |
| 50 | + ], |
| 51 | + toolbar: { |
| 52 | + items: [ |
| 53 | + "heading", |
| 54 | + "fontFamily", |
| 55 | + "fontSize", |
| 56 | + "fontColor", |
| 57 | + "fontBackgroundColor", |
| 58 | + "|", |
| 59 | + "bold", |
| 60 | + "italic", |
| 61 | + "strikethrough", |
| 62 | + "link", |
| 63 | + "|", |
| 64 | + "bulletedList", |
| 65 | + "numberedList", |
| 66 | + "|", |
| 67 | + "insertTable", |
| 68 | + "setTableRowHeader", |
| 69 | + "setTableColumnHeader", |
| 70 | + "|", |
| 71 | + "uploadImage", |
| 72 | + "strapiMediaLib", |
| 73 | + "blockQuote", |
| 74 | + "horizontalLine", |
| 75 | + "-", |
| 76 | + "sourceEditing", |
| 77 | + "|", |
| 78 | + "outdent", |
| 79 | + "indent", |
| 80 | + "|", |
| 81 | + "undo", |
| 82 | + "redo", |
| 83 | + ], |
| 84 | + shouldNotGroupWhenFull: true, |
| 85 | + }, |
| 86 | + table: { |
| 87 | + contentToolbar: [ |
| 88 | + "tableColumn", |
| 89 | + "tableRow", |
| 90 | + "mergeTableCells", |
| 91 | + "tableProperties", |
| 92 | + "tableCellProperties", |
| 93 | + "toggleTableCaption", |
| 94 | + ], |
| 95 | + }, |
| 96 | + image: { |
| 97 | + toolbar: [ |
| 98 | + "imageStyle:inline", |
| 99 | + "imageStyle:block", |
| 100 | + "imageStyle:side", |
| 101 | + "|", |
| 102 | + "toggleImageCaption", |
| 103 | + "imageTextAlternative", |
| 104 | + ], |
| 105 | + }, |
| 106 | + }, |
| 107 | + }, |
| 108 | + }, |
| 109 | +}); |
0 commit comments