Skip to content

Commit

Permalink
rename package to use as an other package
Browse files Browse the repository at this point in the history
  • Loading branch information
johanzandstra committed Oct 9, 2019
1 parent e2550a0 commit 6439727
Show file tree
Hide file tree
Showing 8 changed files with 2,945 additions and 26 deletions.
2,922 changes: 2,922 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ckeditor/ckeditor5-paste-from-office",
"version": "11.1.0",
"description": "Paste from Office feature for CKEditor 5.",
"name": "@dolphiq/ckeditor5-paste-from-documents",
"version": "11.1.1",
"description": "Paste from Documents feature for CKEditor 5.",
"keywords": [
"ckeditor",
"ckeditor5",
Expand All @@ -27,6 +27,7 @@
"@ckeditor/ckeditor5-paragraph": "^11.0.5",
"@ckeditor/ckeditor5-table": "^14.0.0",
"@ckeditor/ckeditor5-utils": "^14.0.0",
"@dolphiq/ckeditor5-paste-from-documents": "file:../pasteFromDocuments",
"eslint": "^5.5.0",
"eslint-config-ckeditor5": "^2.0.0",
"husky": "^1.3.1",
Expand All @@ -40,10 +41,6 @@
"license": "GPL-2.0-or-later",
"homepage": "https://ckeditor.com/ckeditor-5",
"bugs": "https://github.com/ckeditor/ckeditor5/issues",
"repository": {
"type": "git",
"url": "https://github.com/ckeditor/ckeditor5-paste-from-office.git"
},
"files": [
"lang",
"src",
Expand Down
2 changes: 1 addition & 1 deletion src/pastefromoffice.js → src/pastefromdocuments.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
*
* @extends module:core/plugin~Plugin
*/
export default class PasteFromOffice extends Plugin {
export default class PasteFromDocuments extends Plugin {
/**
* @inheritDoc
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ generateTests( {
type: 'integration', // Tests type (integration or normalization).
browsers: [ 'chrome', 'firefox', 'safari', 'edge' ], // For which browsers generate tests.
editorConfig: { // Editor config which will be used during editor creation which is used in tests.
plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Strikethrough, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Strikethrough, Pastefromdocuments ]
},
skip: { // Names of fixtures which tests should be skipped (object `key` is the name of the browser for which to skip tests).
safari: [ 'italicStartingText', 'multipleStylesSingleLine', 'multipleStylesMultiline' ] // Skip due to spacing issue (#13).
Expand Down
18 changes: 9 additions & 9 deletions tests/data/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Image from '@ckeditor/ckeditor5-image/src/image';
import Table from '@ckeditor/ckeditor5-table/src/table';
import env from '@ckeditor/ckeditor5-utils/src/env';

import PasteFromOffice from '../../src/pastefromoffice';
import Pastefromdocuments from '../../src/pastefromdocuments';
import { generateTests } from '../_utils/utils';

const browsers = [ 'chrome', 'firefox', 'safari', 'edge' ];
Expand All @@ -28,7 +28,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Strikethrough, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Strikethrough, Pastefromdocuments ]
},
skip: {
safari: [ 'italicStartingText', 'multipleStylesSingleLine', 'multipleStylesMultiline' ] // Skip due to spacing issue (#13).
Expand All @@ -40,7 +40,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, Image, Table, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, Image, Table, Pastefromdocuments ]
},
skip: {
chrome: ( env.isEdge ? [ 'adjacentGroups' ] : [] ),
Expand All @@ -55,7 +55,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, Heading, Bold, Link, ShiftEnter, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, Heading, Bold, Link, ShiftEnter, Pastefromdocuments ]
},
skip: {
safari: [ 'combined' ] // Skip due to spacing issue (#13).
Expand All @@ -67,7 +67,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Link, List, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Link, List, Pastefromdocuments ]
},
skip: {
safari: [ 'heading3Styled' ] // Skip due to spacing issue (#13).
Expand All @@ -79,7 +79,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, Bold, Italic, Underline, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, Bold, Italic, Underline, Pastefromdocuments ]
}
} );

Expand All @@ -88,7 +88,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, Bold, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, Bold, Pastefromdocuments ]
}
} );

Expand All @@ -97,7 +97,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, List, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, List, Pastefromdocuments ]
}
} );

Expand All @@ -106,7 +106,7 @@ describe( 'PasteFromOffice - integration', () => {
type: 'integration',
browsers,
editorConfig: {
plugins: [ Clipboard, Paragraph, List, Table, Bold, PasteFromOffice ]
plugins: [ Clipboard, Paragraph, List, Table, Bold, Pastefromdocuments ]
}
} );
} );
4 changes: 2 additions & 2 deletions tests/data/normalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import PasteFromOffice from '../../src/pastefromoffice';
import Pastefromdocuments from '../../src/pastefromdocuments';

import { generateTests } from '../_utils/utils';

const browsers = [ 'chrome', 'firefox', 'safari', 'edge' ];

const editorConfig = {
plugins: [ Clipboard, PasteFromOffice, Paragraph ]
plugins: [ Clipboard, Pastefromdocuments, Paragraph ]
};

describe( 'PasteFromOffice - normalization', () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/manual/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline';
import Table from '@ckeditor/ckeditor5-table/src/table';
import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar';
import EasyImage from '@ckeditor/ckeditor5-easy-image/src/easyimage';
import PasteFromOffice from '../../src/pastefromoffice';
import Pastefromdocuments from '../../src/pastefromdocuments';

import { stringify as stringifyView } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';

Expand All @@ -25,7 +25,7 @@ const dataDiv = document.querySelector( '#data' );

ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [ ArticlePluginSet, Strikethrough, Underline, Table, TableToolbar, EasyImage, PasteFromOffice ],
plugins: [ ArticlePluginSet, Strikethrough, Underline, Table, TableToolbar, EasyImage, Pastefromdocuments ],
toolbar: [ 'heading', '|', 'bold', 'italic', 'strikethrough', 'underline', 'link',
'bulletedList', 'numberedList', 'blockQuote', 'insertTable', 'undo', 'redo' ],
cloudServices: CS_CONFIG
Expand Down
8 changes: 4 additions & 4 deletions tests/pastefromoffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

import PasteFromOffice from '../src/pastefromoffice';
import Pastefromdocuments from '../src/pastefromdocuments';
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';
Expand All @@ -19,7 +19,7 @@ describe( 'PasteFromOffice', () => {

beforeEach( () => {
return VirtualTestEditor.create( {
plugins: [ PasteFromOffice, Paragraph ]
plugins: [ Pastefromdocuments, Paragraph ]
} )
.then( _editor => {
editor = _editor;
Expand All @@ -29,11 +29,11 @@ describe( 'PasteFromOffice', () => {
} );

it( 'should be loaded', () => {
expect( pasteFromOffice ).to.be.instanceOf( PasteFromOffice, Paragraph );
expect( pasteFromOffice ).to.be.instanceOf( Pastefromdocuments, Paragraph );
} );

it( 'has proper name', () => {
expect( PasteFromOffice.pluginName ).to.equal( 'PasteFromOffice' );
expect( Pastefromdocuments.pluginName ).to.equal( 'PasteFromOffice' );
} );

it( 'should load Clipboard plugin', () => {
Expand Down

0 comments on commit 6439727

Please sign in to comment.