document.addEventListener('DOMContentLoaded', () => { const { ClassicEditor, Bold, Essentials, Italic, List, ListProperties, Paragraph, PasteFromOffice, RemoveFormat, Table, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, Underline } = window.CKEDITOR; //const {PasteFromOfficeEnhanced} = window.CKEDITOR_PREMIUM_FEATURES; const LICENSE_KEY = 'eyJhbGciOiJFUzI1NiJ9.eyJleHAiOjE3NjcxMzkxOTksImp0aSI6ImQ4ODJkYTBmLWNmYWUtNGU4Mi05ZjYxLTYyYzY4ZmZiZWUzMCIsInVzYWdlRW5kcG9pbnQiOiJodHRwczovL3Byb3h5LWV2ZW50LmNrZWRpdG9yLmNvbSIsImRpc3RyaWJ1dGlvbkNoYW5uZWwiOlsiY2xvdWQiLCJkcnVwYWwiXSwiZmVhdHVyZXMiOlsiRFJVUCJdLCJ2YyI6IjI0OGE5ZjdhIn0.m-nfFNt3CYv4_P81vYJn8nTGJeIXXi2hWIFr7EnWNVNkyW_wmIt3Oh_1lOiQE43kN9LXpM0-jEyomb1sSqkwzw'; //const LICENSE_KEY = 'eyJhbGciOiJFUzI1NiJ9.eyJleHAiOjE3MzY4MTI3OTksImp0aSI6IjRkNDQyODQ2LWIwNDUtNDU1Ny1hZTY0LTM3ZDE0OTdkYWIxNSIsInVzYWdlRW5kcG9pbnQiOiJodHRwczovL3Byb3h5LWV2ZW50LmNrZWRpdG9yLmNvbSIsImRpc3RyaWJ1dGlvbkNoYW5uZWwiOlsiY2xvdWQiLCJkcnVwYWwiLCJzaCJdLCJ3aGl0ZUxhYmVsIjp0cnVlLCJsaWNlbnNlVHlwZSI6InRyaWFsIiwiZmVhdHVyZXMiOlsiKiJdLCJ2YyI6ImIwYmRlYmVjIn0.fhO6LXEF3lP_QpHQY2c9hPnensaY2_0AbfgJ0p4wUlQFmIyn-9dwe5rbMh9SdZYgoqOY5J4-zN0-JfO2vFm3vg'; const editorConfig = { toolbar: { items: ['bold', 'italic', 'underline', 'removeFormat', '|', 'insertTable', '|', 'bulletedList', 'numberedList'], shouldNotGroupWhenFull: false }, plugins: [ Bold, Essentials, Italic, List, ListProperties, Paragraph, PasteFromOffice, //PasteFromOfficeEnhanced, RemoveFormat, Table, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, Underline ], initialData: '', licenseKey: LICENSE_KEY, list: { properties: { styles: true, startIndex: true, reversed: true } }, menuBar: { isVisible: true }, placeholder: 'Type or paste your content here!', table: { contentToolbar: ['tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties', 'tableCellProperties'] } }; ClassicEditor.create(document.querySelector('#editor'), editorConfig); console.log("CKE"); });