diff --git a/docs/_snippets/features/build-paste-from-office-source.js b/docs/_snippets/features/build-paste-from-office-source.js index 9cac034..1e65280 100644 --- a/docs/_snippets/features/build-paste-from-office-source.js +++ b/docs/_snippets/features/build-paste-from-office-source.js @@ -14,6 +14,7 @@ import Subscript from '@ckeditor/ckeditor5-basic-styles/src/subscript'; import Superscript from '@ckeditor/ckeditor5-basic-styles/src/superscript'; import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline'; import Font from '@ckeditor/ckeditor5-font/src/font'; +import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline'; import Indent from '@ckeditor/ckeditor5-indent/src/indent'; import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock'; import ImageResize from '@ckeditor/ckeditor5-image/src/imageresize'; @@ -29,6 +30,7 @@ ClassicEditor.builtinPlugins.push( Superscript, Underline, Font, + HorizontalLine, Indent, IndentBlock, ImageResize, diff --git a/docs/_snippets/features/paste-from-office.js b/docs/_snippets/features/paste-from-office.js index 21e2b50..455230e 100644 --- a/docs/_snippets/features/paste-from-office.js +++ b/docs/_snippets/features/paste-from-office.js @@ -9,6 +9,61 @@ import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud ClassicEditor .create( document.querySelector( '#snippet-paste-from-office' ), { + toolbar: { + items: [ + 'heading', + '|', + 'fontSize', + 'fontFamily', + 'fontColor', + 'fontBackgroundColor', + '|', + 'bold', + 'italic', + 'underline', + 'strikethrough', + '|', + 'alignment', + '|', + 'numberedList', + 'bulletedList', + '|', + 'indent', + 'outdent', + '|', + 'link', + 'imageUpload', + 'insertTable', + 'horizontalLine', + '|', + 'undo', + 'redo' + ], + viewportTopOffset: window.getViewportTopOffsetConfig() + }, + image: { + styles: [ + 'full', + 'alignLeft', + 'alignRight' + ], + toolbar: [ + 'imageStyle:alignLeft', + 'imageStyle:full', + 'imageStyle:alignRight', + '|', + 'imageTextAlternative' + ] + }, + table: { + contentToolbar: [ + 'tableColumn', + 'tableRow', + 'mergeTableCells', + 'tableProperties', + 'tableCellProperties' + ] + }, placeholder: 'Paste the content here to test the feature.', cloudServices: CS_CONFIG } ) diff --git a/docs/assets/CKEditor5.PFO.Sample.Recognition_of_Achievement.docx b/docs/assets/CKEditor5.PFO.Sample.Recognition_of_Achievement.docx index 62eb014..a4d7dbc 100644 Binary files a/docs/assets/CKEditor5.PFO.Sample.Recognition_of_Achievement.docx and b/docs/assets/CKEditor5.PFO.Sample.Recognition_of_Achievement.docx differ diff --git a/docs/features/paste-from-google-docs.md b/docs/features/paste-from-google-docs.md index fa172b2..45e09e0 100644 --- a/docs/features/paste-from-google-docs.md +++ b/docs/features/paste-from-google-docs.md @@ -1,6 +1,8 @@ --- menu-title: Paste from Google Docs category: features-pasting +classes: main__content--no-toc +toc: false order: 20 --- diff --git a/docs/features/paste-from-word.md b/docs/features/paste-from-word.md index 7fbdbf9..9dccf91 100644 --- a/docs/features/paste-from-word.md +++ b/docs/features/paste-from-word.md @@ -1,6 +1,8 @@ --- menu-title: Paste from Word category: features-pasting +classes: main__content--no-toc +toc: false order: 10 ---