8
0
Просмотр исходного кода

Fix paths to ckeditor5-core modules.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
9270d62e7a

+ 1 - 1
packages/ckeditor5-restricted-editing/src/restricteddocument.js

@@ -7,7 +7,7 @@
  * @module core/restricteddocument
  */
 
-import Plugin from './plugin';
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 
 import RestrictedDocumentEditing from './restricteddocumentediting';
 import RestrictedDocumentUI from './restricteddocumentui';

+ 1 - 1
packages/ckeditor5-restricted-editing/src/restricteddocumentcommand.js

@@ -7,7 +7,7 @@
  * @module core/restricteddocumentcommand
  */
 
-import Command from './command';
+import Command from '@ckeditor/ckeditor5-core/src/command';
 
 /**
  * @extends module:core/command~Command

+ 1 - 1
packages/ckeditor5-restricted-editing/src/restricteddocumentediting.js

@@ -7,7 +7,7 @@
  * @module core/restricteddocumentediting
  */
 
-import Plugin from './plugin';
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import RestrictedDocumentCommand from './restricteddocumentcommand';
 
 /**

+ 2 - 1
packages/ckeditor5-restricted-editing/src/restricteddocumentui.js

@@ -7,8 +7,9 @@
  * @module core/restricteddocumentui
  */
 
-import Plugin from './plugin';
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
+
 import restrictedDocumentIcon from '../theme/icons/restricted.svg';
 
 /**

+ 1 - 1
packages/ckeditor5-restricted-editing/tests/manual/restricteddocument.js

@@ -6,7 +6,7 @@
 /* globals console, window, document */
 
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
-import ArticlePluginSet from '../_utils/articlepluginset';
+import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
 import Table from '@ckeditor/ckeditor5-table/src/table';
 
 import RestrictedDocument from '../../src/restricteddocument';

+ 2 - 2
packages/ckeditor5-restricted-editing/tests/restricteddocument.js

@@ -5,8 +5,8 @@
 
 /* global document */
 
-import testUtils from './_utils/utils';
-import ClassicTestEditor from './_utils/classictesteditor';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
+import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
 
 import RestrictedDocument from './../src/restricteddocument';
 import RestrictedDocumentUI from './../src/restricteddocumentui';

+ 2 - 3
packages/ckeditor5-restricted-editing/tests/restricteddocumentcommand.js

@@ -3,12 +3,11 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-import RestrictedDocumentCommand from '../src/restricteddocumentcommand';
-
 import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
-
 import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
+import RestrictedDocumentCommand from '../src/restricteddocumentcommand';
+
 describe( 'RestrictedDocumentCommand', () => {
 	let editor, command, model;
 

+ 3 - 4
packages/ckeditor5-restricted-editing/tests/restricteddocumentediting.js

@@ -3,12 +3,11 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
-
-import testUtils from './_utils/utils';
-import VirtualTestEditor from './_utils/virtualtesteditor';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
+import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
 import { getData as getViewData } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
 import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
 import RestrictedDocumentEditing from '../src/restricteddocumentediting';
 import RestrictedDocumentCommand from '../src/restricteddocumentcommand';

+ 1 - 1
packages/ckeditor5-restricted-editing/tests/restricteddocumentui.js

@@ -5,9 +5,9 @@
 
 /* globals document */
 
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
 import RestrictedDocumentUI from '../src/restricteddocumentui';