Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #93 from ckeditor/i/5887
Browse files Browse the repository at this point in the history
Docs: Expanded Paste from Word and Paste from Google Docs samples. [skip ci]
  • Loading branch information
AnnaTomanek committed Feb 27, 2020
2 parents 854b8ab + 2eb24e7 commit 12c0b6b
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_snippets/features/build-paste-from-office-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -29,6 +30,7 @@ ClassicEditor.builtinPlugins.push(
Superscript,
Underline,
Font,
HorizontalLine,
Indent,
IndentBlock,
ImageResize,
Expand Down
55 changes: 55 additions & 0 deletions docs/_snippets/features/paste-from-office.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
} )
Expand Down
Binary file modified docs/assets/CKEditor5.PFO.Sample.Recognition_of_Achievement.docx
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/features/paste-from-google-docs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
menu-title: Paste from Google Docs
category: features-pasting
classes: main__content--no-toc
toc: false
order: 20
---

Expand Down
2 changes: 2 additions & 0 deletions docs/features/paste-from-word.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
menu-title: Paste from Word
category: features-pasting
classes: main__content--no-toc
toc: false
order: 10
---

Expand Down

0 comments on commit 12c0b6b

Please sign in to comment.