From 95a82875a0a6c1960a50f0e80f245f2541406620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Wed, 22 May 2024 10:22:29 +0200 Subject: [PATCH] Improved the code formatting. --- feature-rich/index.js | 958 +++++++++++++++++++++--------------------- 1 file changed, 479 insertions(+), 479 deletions(-) diff --git a/feature-rich/index.js b/feature-rich/index.js index 8477d6f..922c698 100644 --- a/feature-rich/index.js +++ b/feature-rich/index.js @@ -8,7 +8,7 @@ // * Or you can comment out (disable) the plugins imported from the "ckeditor5-premium-features" package. const EDITOR_LICENSE_KEY = ''; -if ( !EDITOR_LICENSE_KEY ) { +if (!EDITOR_LICENSE_KEY) { alert( 'CKEditor Commercial Features included in this demo require a license key.\n' + 'Check the index.js file for more information.' @@ -19,9 +19,9 @@ if ( !EDITOR_LICENSE_KEY ) { // * After signing up for a trial, the fastest way to try out CKBox is to use the development token endpoint: // https://ckeditor.com/docs/ckbox/latest/guides/configuration/authentication.html#token-endpoint // * Or you can comment out (disable) the CKBox plugin. -const CKBOX_TOKEN_URL = ''; +const CKBOX_TOKEN_URL = 'https://api.ckbox.io/token/demo'; -if ( !CKBOX_TOKEN_URL ) { +if (!CKBOX_TOKEN_URL) { alert( 'CKBox included in this demo require a valid token URL.\n' + 'Check the index.js file for more information.' @@ -511,501 +511,501 @@ const EMOJIS_ARRAY = [ { character: '☀️', title: 'Sun' }, ]; -ClassicEditor.create(document.querySelector('#cke5-feature-rich-demo'), { - plugins: [ - Alignment, - Autoformat, - AutoImage, - AutoLink, - BlockQuote, - Bold, - CKBox, - CloudServices, - Code, - CodeBlock, - Essentials, - ExportPdf, - ExportWord, - FindAndReplace, - Font, - GeneralHtmlSupport, - Heading, - Highlight, - HorizontalLine, - Image, - ImageCaption, - ImageInsert, - ImageResize, - ImageStyle, - ImageToolbar, - ImageUpload, - Base64UploadAdapter, - Indent, - IndentBlock, - Italic, - Link, - LinkImage, - List, - ListProperties, - MediaEmbed, - Mention, - PageBreak, - Paragraph, - PasteFromOffice, - PictureEditing, - RemoveFormat, - SpecialCharacters, - SpecialCharactersEmoji, - SpecialCharactersEssentials, - Strikethrough, - Style, - Subscript, - Superscript, - Table, - TableCaption, - TableCellProperties, - TableColumnResize, - TableProperties, - TableToolbar, - TextPartLanguage, - TextTransformation, - TodoList, - Underline, - WordCount, +ClassicEditor + .create(document.querySelector('#cke5-feature-rich-demo'), { + plugins: [ + Alignment, + Autoformat, + AutoImage, + AutoLink, + BlockQuote, + Bold, + CKBox, + CloudServices, + Code, + CodeBlock, + Essentials, + ExportPdf, + ExportWord, + FindAndReplace, + Font, + GeneralHtmlSupport, + Heading, + Highlight, + HorizontalLine, + Image, + ImageCaption, + ImageInsert, + ImageResize, + ImageStyle, + ImageToolbar, + ImageUpload, + Base64UploadAdapter, + Indent, + IndentBlock, + Italic, + Link, + LinkImage, + List, + ListProperties, + MediaEmbed, + Mention, + PageBreak, + Paragraph, + PasteFromOffice, + PictureEditing, + RemoveFormat, + SpecialCharacters, + SpecialCharactersEmoji, + SpecialCharactersEssentials, + Strikethrough, + Style, + Subscript, + Superscript, + Table, + TableCaption, + TableCellProperties, + TableColumnResize, + TableProperties, + TableToolbar, + TextPartLanguage, + TextTransformation, + TodoList, + Underline, + WordCount, - // TODO - // WProofreader, - - SlashCommand, - Template, - FormatPainter, - TableOfContents, - ImportWord, - ], - licenseKey: EDITOR_LICENSE_KEY, - toolbar: { - shouldNotGroupWhenFull: true, - items: [ - // --- Document-wide tools ---------------------------------------------------------------------- - 'undo', - 'redo', - '|', - 'importWord', - 'exportWord', - 'exportPdf', - '|', - 'findAndReplace', - 'selectAll', // TODO - // 'wproofreader', - '|', - 'insertTemplate', - 'tableOfContents', - '|', - 'formatPainter', - '|', + // WProofreader, - // --- "Insertables" ---------------------------------------------------------------------------- - 'link', - 'insertImage', - 'ckbox', - 'insertTable', - 'blockQuote', - 'mediaEmbed', - 'codeBlock', - 'pageBreak', - 'horizontalLine', - 'specialCharacters', - '-', + SlashCommand, + Template, + FormatPainter, + TableOfContents, + ImportWord, + ], + licenseKey: EDITOR_LICENSE_KEY, + toolbar: { + shouldNotGroupWhenFull: true, + items: [ + // --- Document-wide tools ---------------------------------------------------------------------- + 'undo', + 'redo', + '|', + 'importWord', + 'exportWord', + 'exportPdf', + '|', + 'findAndReplace', + 'selectAll', + // TODO + // 'wproofreader', + '|', + 'insertTemplate', + 'tableOfContents', + '|', + 'formatPainter', + '|', - // --- Block-level formatting ------------------------------------------------------------------- - 'heading', - 'style', - '|', + // --- "Insertables" ---------------------------------------------------------------------------- + 'link', + 'insertImage', + 'ckbox', + 'insertTable', + 'blockQuote', + 'mediaEmbed', + 'codeBlock', + 'pageBreak', + 'horizontalLine', + 'specialCharacters', + '-', - // --- Basic styles, font and inline formatting ------------------------------------------------------- - 'bold', - 'italic', - 'underline', - 'strikethrough', - { - label: 'Basic styles', - icon: 'text', - items: [ - 'fontSize', - 'fontFamily', - 'fontColor', - 'fontBackgroundColor', - 'highlight', - 'superscript', - 'subscript', - 'code', - '|', - 'textPartLanguage', - '|', - ], - }, - 'removeFormat', - '|', + // --- Block-level formatting ------------------------------------------------------------------- + 'heading', + 'style', + '|', - // --- Text alignment --------------------------------------------------------------------------- - 'alignment', - '|', + // --- Basic styles, font and inline formatting ------------------------------------------------------- + 'bold', + 'italic', + 'underline', + 'strikethrough', + { + label: 'Basic styles', + icon: 'text', + items: [ + 'fontSize', + 'fontFamily', + 'fontColor', + 'fontBackgroundColor', + 'highlight', + 'superscript', + 'subscript', + 'code', + '|', + 'textPartLanguage', + '|', + ], + }, + 'removeFormat', + '|', - // --- Lists and indentation -------------------------------------------------------------------- - 'bulletedList', - 'numberedList', - 'todoList', - '|', - 'outdent', - 'indent', - ], - }, - exportPdf: { - stylesheets: ['EDITOR_STYLES', './content.css'], - fileName: 'export-pdf-demo.pdf', - appID: 'cke5-demos', - converterOptions: { - format: 'Tabloid', - margin_top: exportVerticalSpace, - margin_bottom: exportVerticalSpace, - margin_right: exportHorizontalSpace, - margin_left: exportHorizontalSpace, - page_orientation: 'portrait', - }, - tokenUrl: false, - }, - exportWord: { - stylesheets: ['EDITOR_STYLES', './content.css'], - fileName: 'export-word-demo.docx', - appID: 'cke5-demos', - converterOptions: { - format: 'A4', - margin_top: exportVerticalSpace, - margin_bottom: exportVerticalSpace, - margin_right: exportHorizontalSpace, - margin_left: exportHorizontalSpace, + // --- Text alignment --------------------------------------------------------------------------- + 'alignment', + '|', + + // --- Lists and indentation -------------------------------------------------------------------- + 'bulletedList', + 'numberedList', + 'todoList', + '|', + 'outdent', + 'indent', + ], }, - tokenUrl: false, - }, - fontFamily: { - supportAllValues: true, - }, - fontSize: { - options: [10, 12, 14, 'default', 18, 20, 22], - supportAllValues: true, - }, - fontColor: { - columns: 12, - colors: REDUCED_MATERIAL_COLORS, - }, - fontBackgroundColor: { - columns: 12, - colors: REDUCED_MATERIAL_COLORS, - }, - 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', + exportPdf: { + stylesheets: ['EDITOR_STYLES', './content.css'], + fileName: 'export-pdf-demo.pdf', + appID: 'cke5-demos', + converterOptions: { + format: 'Tabloid', + margin_top: exportVerticalSpace, + margin_bottom: exportVerticalSpace, + margin_right: exportHorizontalSpace, + margin_left: exportHorizontalSpace, + page_orientation: 'portrait', }, - { - model: 'heading3', - view: 'h3', - title: 'Heading 3', - class: 'ck-heading_heading3', - }, - { - model: 'heading4', - view: 'h4', - title: 'Heading 4', - class: 'ck-heading_heading4', - }, - { - model: 'heading5', - view: 'h5', - title: 'Heading 5', - class: 'ck-heading_heading5', + tokenUrl: false, + }, + exportWord: { + stylesheets: ['EDITOR_STYLES', './content.css'], + fileName: 'export-word-demo.docx', + appID: 'cke5-demos', + converterOptions: { + format: 'A4', + margin_top: exportVerticalSpace, + margin_bottom: exportVerticalSpace, + margin_right: exportHorizontalSpace, + margin_left: exportHorizontalSpace, }, - { - model: 'heading6', - view: 'h6', - title: 'Heading 6', - class: 'ck-heading_heading6', + tokenUrl: false, + }, + fontFamily: { + supportAllValues: true, + }, + fontSize: { + options: [10, 12, 14, 'default', 18, 20, 22], + supportAllValues: true, + }, + fontColor: { + columns: 12, + colors: REDUCED_MATERIAL_COLORS, + }, + fontBackgroundColor: { + columns: 12, + colors: REDUCED_MATERIAL_COLORS, + }, + 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', + }, + { + model: 'heading4', + view: 'h4', + title: 'Heading 4', + class: 'ck-heading_heading4', + }, + { + model: 'heading5', + view: 'h5', + title: 'Heading 5', + class: 'ck-heading_heading5', + }, + { + model: 'heading6', + view: 'h6', + title: 'Heading 6', + class: 'ck-heading_heading6', + }, + ], + }, + htmlSupport: { + allow: [ + // Enables all HTML features. + { + name: /.*/, + attributes: true, + classes: true, + styles: true, + }, + ], + disallow: [ + { + attributes: [ + { key: /^on(.*)/i, value: true }, + { + key: /.*/, + value: /(\b)(on\S+)(\s*)=|javascript:|(<\s*)(\/*)script/i, + }, + { key: /.*/, value: /data:(?!image\/(png|jpeg|gif|webp))/i }, + ], + }, + { name: 'script' }, + ], + }, + image: { + styles: ['alignCenter', 'alignLeft', 'alignRight'], + resizeOptions: [ + { + name: 'resizeImage:original', + label: 'Default image width', + value: null, + }, + { + name: 'resizeImage:50', + label: '50% page width', + value: '50', + }, + { + name: 'resizeImage:75', + label: '75% page width', + value: '75', + }, + ], + toolbar: [ + 'imageTextAlternative', + 'toggleImageCaption', + '|', + 'imageStyle:inline', + 'imageStyle:wrapText', + 'imageStyle:breakText', + 'imageStyle:side', + '|', + 'resizeImage', + ], + insert: { + integrations: ['url'], }, - ], - }, - htmlSupport: { - allow: [ - // Enables all HTML features. - { - name: /.*/, - attributes: true, - classes: true, + }, + importWord: { + tokenUrl: false, + defaultStyles: true, + }, + list: { + properties: { styles: true, + startIndex: true, + reversed: true, }, - ], - disallow: [ - { - attributes: [ - { key: /^on(.*)/i, value: true }, - { - key: /.*/, - value: /(\b)(on\S+)(\s*)=|javascript:|(<\s*)(\/*)script/i, + }, + link: { + decorators: { + toggleDownloadable: { + mode: 'manual', + label: 'Downloadable', + attributes: { + download: 'file', }, - { key: /.*/, value: /data:(?!image\/(png|jpeg|gif|webp))/i }, - ], - }, - { name: 'script' }, - ], - }, - image: { - styles: ['alignCenter', 'alignLeft', 'alignRight'], - resizeOptions: [ - { - name: 'resizeImage:original', - label: 'Default image width', - value: null, - }, - { - name: 'resizeImage:50', - label: '50% page width', - value: '50', - }, - { - name: 'resizeImage:75', - label: '75% page width', - value: '75', + }, }, - ], - toolbar: [ - 'imageTextAlternative', - 'toggleImageCaption', - '|', - 'imageStyle:inline', - 'imageStyle:wrapText', - 'imageStyle:breakText', - 'imageStyle:side', - '|', - 'resizeImage', - ], - insert: { - integrations: ['url'], + addTargetToExternalLinks: true, + defaultProtocol: 'https://', }, - }, - importWord: { - tokenUrl: false, - defaultStyles: true, - }, - list: { - properties: { - styles: true, - startIndex: true, - reversed: true, + mention: { + feeds: [ + { + marker: '@', + feed: [ + { id: '@cflores', avatar: 'm_1', name: 'Charles Flores' }, + { id: '@gjackson', avatar: 'm_2', name: 'Gerald Jackson' }, + { id: '@wreed', avatar: 'm_3', name: 'Wayne Reed' }, + { id: '@lgarcia', avatar: 'm_4', name: 'Louis Garcia' }, + { id: '@rwilson', avatar: 'm_5', name: 'Roy Wilson' }, + { id: '@mnelson', avatar: 'm_6', name: 'Matthew Nelson' }, + { id: '@rwilliams', avatar: 'm_7', name: 'Randy Williams' }, + { id: '@ajohnson', avatar: 'm_8', name: 'Albert Johnson' }, + { id: '@sroberts', avatar: 'm_9', name: 'Steve Roberts' }, + { id: '@kevans', avatar: 'm_10', name: 'Kevin Evans' }, + { id: '@vxiques', avatar: 'm_11', name: 'Vincent Xiques' }, + { id: '@jzaldivar', avatar: 'm_12', name: 'Jack Zaldivar' }, + { id: '@tfoxworth', avatar: 'm_13', name: 'Thomas Foxworth' }, + { id: '@phendrix', avatar: 'm_14', name: 'Peter Hendrix' }, + { id: '@pthaxton', avatar: 'm_15', name: 'Philip Thaxton' }, + { id: '@mwilson', avatar: 'w_1', name: 'Mildred Wilson' }, + { id: '@mnelson', avatar: 'w_2', name: 'Melissa Nelson' }, + { id: '@kallen', avatar: 'w_3', name: 'Kathleen Allen' }, + { id: '@myoung', avatar: 'w_4', name: 'Mary Young' }, + { id: '@arogers', avatar: 'w_5', name: 'Ashley Rogers' }, + { id: '@dgriffin', avatar: 'w_6', name: 'Debra Griffin' }, + { id: '@dwilliams', avatar: 'w_7', name: 'Denise Williams' }, + { id: '@ajames', avatar: 'w_8', name: 'Amy James' }, + { id: '@randerson', avatar: 'w_9', name: 'Ruby Anderson' }, + { id: '@wlee', avatar: 'w_10', name: 'Wanda Lee' }, + { id: '@yquick', avatar: 'w_11', name: 'Yasmin Quick' }, + { id: '@bzappaterra', avatar: 'w_12', name: 'Beatrice Zappaterra' }, + { id: '@zquigley', avatar: 'w_13', name: 'Zoe Quigley' }, + { id: '@pfabozzi', avatar: 'w_14', name: 'Patrizia Fabozzi' }, + { id: '@vquimby', avatar: 'w_15', name: 'Victoria Quimby' }, + ], + minimumCharacters: 1, + itemRenderer: customMentionUserItemRenderer, + }, + { + marker: '#', + feed: [ + '#american', + '#asian', + '#baking', + '#breakfast', + '#cake', + '#caribbean', + '#chinese', + '#chocolate', + '#cooking', + '#dairy', + '#delicious', + '#delish', + '#dessert', + '#desserts', + '#dinner', + '#eat', + '#eating', + '#eggs', + '#fish', + '#food', + '#foodie', + '#foods', + '#french', + '#fresh', + '#fusion', + '#glutenfree', + '#greek', + '#grilling', + '#halal', + '#homemade', + '#hot', + '#hungry', + '#icecream', + '#indian', + '#italian', + '#japanese', + '#keto', + '#korean', + '#lactosefree', + '#lunch', + '#meat', + '#mediterranean', + '#mexican', + '#moroccan', + '#nom', + '#nomnom', + '#paleo', + '#poultry', + '#snack', + '#spanish', + '#sugarfree', + '#sweet', + '#sweettooth', + '#tasty', + '#thai', + '#vegan', + '#vegetarian', + '#vietnamese', + '#yum', + '#yummy', + ], + }, + ], }, - }, - link: { - decorators: { - toggleDownloadable: { - mode: 'manual', - label: 'Downloadable', - attributes: { - download: 'file', + placeholder: 'Type or paste your content here!', + style: { + definitions: [ + { + name: 'Title', + element: 'h1', + classes: ['document-title'], }, - }, + { + name: 'Subtitle', + element: 'h2', + classes: ['document-subtitle'], + }, + { + name: 'Callout', + element: 'p', + classes: ['callout'], + }, + { + name: 'Side quote', + element: 'blockquote', + classes: ['side-quote'], + }, + { + name: 'Needs clarification', + element: 'span', + classes: ['needs-clarification'], + }, + { + name: 'Wide spacing', + element: 'span', + classes: ['wide-spacing'], + }, + { + name: 'Small caps', + element: 'span', + classes: ['small-caps'], + }, + { + name: 'Code (dark)', + element: 'pre', + classes: ['stylish-code', 'stylish-code-dark'], + }, + { + name: 'Code (bright)', + element: 'pre', + classes: ['stylish-code', 'stylish-code-bright'], + }, + ], }, - addTargetToExternalLinks: true, - defaultProtocol: 'https://', - }, - mention: { - feeds: [ - { - marker: '@', - feed: [ - { id: '@cflores', avatar: 'm_1', name: 'Charles Flores' }, - { id: '@gjackson', avatar: 'm_2', name: 'Gerald Jackson' }, - { id: '@wreed', avatar: 'm_3', name: 'Wayne Reed' }, - { id: '@lgarcia', avatar: 'm_4', name: 'Louis Garcia' }, - { id: '@rwilson', avatar: 'm_5', name: 'Roy Wilson' }, - { id: '@mnelson', avatar: 'm_6', name: 'Matthew Nelson' }, - { id: '@rwilliams', avatar: 'm_7', name: 'Randy Williams' }, - { id: '@ajohnson', avatar: 'm_8', name: 'Albert Johnson' }, - { id: '@sroberts', avatar: 'm_9', name: 'Steve Roberts' }, - { id: '@kevans', avatar: 'm_10', name: 'Kevin Evans' }, - { id: '@vxiques', avatar: 'm_11', name: 'Vincent Xiques' }, - { id: '@jzaldivar', avatar: 'm_12', name: 'Jack Zaldivar' }, - { id: '@tfoxworth', avatar: 'm_13', name: 'Thomas Foxworth' }, - { id: '@phendrix', avatar: 'm_14', name: 'Peter Hendrix' }, - { id: '@pthaxton', avatar: 'm_15', name: 'Philip Thaxton' }, - { id: '@mwilson', avatar: 'w_1', name: 'Mildred Wilson' }, - { id: '@mnelson', avatar: 'w_2', name: 'Melissa Nelson' }, - { id: '@kallen', avatar: 'w_3', name: 'Kathleen Allen' }, - { id: '@myoung', avatar: 'w_4', name: 'Mary Young' }, - { id: '@arogers', avatar: 'w_5', name: 'Ashley Rogers' }, - { id: '@dgriffin', avatar: 'w_6', name: 'Debra Griffin' }, - { id: '@dwilliams', avatar: 'w_7', name: 'Denise Williams' }, - { id: '@ajames', avatar: 'w_8', name: 'Amy James' }, - { id: '@randerson', avatar: 'w_9', name: 'Ruby Anderson' }, - { id: '@wlee', avatar: 'w_10', name: 'Wanda Lee' }, - { id: '@yquick', avatar: 'w_11', name: 'Yasmin Quick' }, - { id: '@bzappaterra', avatar: 'w_12', name: 'Beatrice Zappaterra' }, - { id: '@zquigley', avatar: 'w_13', name: 'Zoe Quigley' }, - { id: '@pfabozzi', avatar: 'w_14', name: 'Patrizia Fabozzi' }, - { id: '@vquimby', avatar: 'w_15', name: 'Victoria Quimby' }, - ], - minimumCharacters: 1, - itemRenderer: customMentionUserItemRenderer, - }, - { - marker: '#', - feed: [ - '#american', - '#asian', - '#baking', - '#breakfast', - '#cake', - '#caribbean', - '#chinese', - '#chocolate', - '#cooking', - '#dairy', - '#delicious', - '#delish', - '#dessert', - '#desserts', - '#dinner', - '#eat', - '#eating', - '#eggs', - '#fish', - '#food', - '#foodie', - '#foods', - '#french', - '#fresh', - '#fusion', - '#glutenfree', - '#greek', - '#grilling', - '#halal', - '#homemade', - '#hot', - '#hungry', - '#icecream', - '#indian', - '#italian', - '#japanese', - '#keto', - '#korean', - '#lactosefree', - '#lunch', - '#meat', - '#mediterranean', - '#mexican', - '#moroccan', - '#nom', - '#nomnom', - '#paleo', - '#poultry', - '#snack', - '#spanish', - '#sugarfree', - '#sweet', - '#sweettooth', - '#tasty', - '#thai', - '#vegan', - '#vegetarian', - '#vietnamese', - '#yum', - '#yummy', - ], - }, - ], - }, - placeholder: 'Type or paste your content here!', - style: { - definitions: [ - { - name: 'Title', - element: 'h1', - classes: ['document-title'], - }, - { - name: 'Subtitle', - element: 'h2', - classes: ['document-subtitle'], - }, - { - name: 'Callout', - element: 'p', - classes: ['callout'], - }, - { - name: 'Side quote', - element: 'blockquote', - classes: ['side-quote'], - }, - { - name: 'Needs clarification', - element: 'span', - classes: ['needs-clarification'], - }, - { - name: 'Wide spacing', - element: 'span', - classes: ['wide-spacing'], - }, - { - name: 'Small caps', - element: 'span', - classes: ['small-caps'], - }, - { - name: 'Code (dark)', - element: 'pre', - classes: ['stylish-code', 'stylish-code-dark'], - }, - { - name: 'Code (bright)', - element: 'pre', - classes: ['stylish-code', 'stylish-code-bright'], - }, - ], - }, - table: { - contentToolbar: [ - 'tableColumn', - 'tableRow', - 'mergeTableCells', - 'tableProperties', - 'tableCellProperties', - 'toggleTableCaption', - ], - }, - wproofreader: { - serviceId: WEB_SPELL_CHECKER_LICENSE_KEY, - lang: 'auto', - srcUrl: - 'https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js', - autoStartup: false, - }, - ckbox: { - tokenUrl: CKBOX_TOKEN_URL, - }, - template: { - definitions: TEMPLATE_DEFINITIONS, - }, -}) + table: { + contentToolbar: [ + 'tableColumn', + 'tableRow', + 'mergeTableCells', + 'tableProperties', + 'tableCellProperties', + 'toggleTableCaption', + ], + }, + wproofreader: { + serviceId: WEB_SPELL_CHECKER_LICENSE_KEY, + lang: 'auto', + srcUrl: 'https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js', + autoStartup: false, + }, + ckbox: { + tokenUrl: CKBOX_TOKEN_URL, + }, + template: { + definitions: TEMPLATE_DEFINITIONS, + }, + }) .then((editor) => { document .querySelector('.ck.ck-editor__main')