@@ -7,8 +7,8 @@
* @module core/command/command
*/
-import ObservableMixin from '../../utils/observablemixin.js';
-import mix from '../../utils/mix.js';
+import ObservableMixin from 'ckeditor5-utils/src/observablemixin';
+import mix from 'ckeditor5-utils/src/mix';
/**
* The base class for CKEditor commands.
@@ -7,9 +7,9 @@
* @module core/command/helpers/getschemavalidranges
-import TreeWalker from '../../../engine/model/treewalker.js';
-import Range from '../../../engine/model/range.js';
-import Position from '../../../engine/model/position.js';
+import TreeWalker from 'ckeditor5-engine/src/model/treewalker';
+import Range from 'ckeditor5-engine/src/model/range';
+import Position from 'ckeditor5-engine/src/model/position';
* Walks through given array of ranges and removes parts of them that are not allowed by passed schema to have the
@@ -7,7 +7,7 @@
* @module core/command/helpers/isattributeallowedinselection
* Checks {@link module:engine/model/document~Document#schema} if attribute is allowed in selection:
* @module core/command/toggleattributecommand
-import Command from './command.js';
-import getSchemaValidRanges from './helpers/getschemavalidranges.js';
-import isAttributeAllowedInSelection from './helpers/isattributeallowedinselection.js';
+import Command from './command';
+import getSchemaValidRanges from './helpers/getschemavalidranges';
+import isAttributeAllowedInSelection from './helpers/isattributeallowedinselection';
* An extension of the base {@link module:core/command/command~Command} class, which provides utilities for a command which toggles a single
@@ -7,15 +7,15 @@
* @module core/editor/editor
-import EmitterMixin from '../../utils/emittermixin.js';
-import Config from '../../utils/config.js';
-import PluginCollection from '../plugincollection.js';
-import Locale from '../../utils/locale.js';
-import DataController from '../../engine/controller/datacontroller.js';
-import Document from '../../engine/model/document.js';
-
-import CKEditorError from '../../utils/ckeditorerror.js';
+import EmitterMixin from 'ckeditor5-utils/src/emittermixin';
+import Config from 'ckeditor5-utils/src/config';
+import PluginCollection from '../plugincollection';
+import Locale from 'ckeditor5-utils/src/locale';
+import DataController from 'ckeditor5-engine/src/controller/datacontroller';
+import Document from 'ckeditor5-engine/src/model/document';
+
+import CKEditorError from 'ckeditor5-utils/src/ckeditorerror';
* Class representing a basic editor. It contains a base architecture, without much additional logic.
@@ -7,12 +7,12 @@
* @module core/editor/standardeditor
-import Editor from './editor.js';
-import KeystrokeHandler from '../keystrokehandler.js';
-import EditingController from '../../engine/controller/editingcontroller.js';
+import Editor from './editor';
+import KeystrokeHandler from '../keystrokehandler';
+import EditingController from 'ckeditor5-engine/src/controller/editingcontroller';
-import getDataFromElement from '../../utils/dom/getdatafromelement.js';
-import setDataInElement from '../../utils/dom/setdatainelement.js';
+import getDataFromElement from 'ckeditor5-utils/src/dom/getdatafromelement';
+import setDataInElement from 'ckeditor5-utils/src/dom/setdatainelement';
* Class representing a typical browser-based editor. It handles a single source element and
* @module core/keystrokehandler
-import EmitterMixin from '../utils/emittermixin.js';
-import { getCode, parseKeystroke } from '../utils/keyboard.js';
+import { getCode, parseKeystroke } from 'ckeditor5-utils/src/keyboard';
* Keystroke handler. Its instance is available in {@link module:core/editor/standardeditor~StandardEditor#keystrokes} so plugins
* @module core/plugin
-import ObservableMixin from '../utils/observablemixin.js';
-import mix from '../utils/mix.js';
* The base class for CKEditor plugin classes.
* @module core/plugincollection
-import Plugin from './plugin.js';
-import CKEditorError from '../utils/ckeditorerror.js';
-import log from '../utils/log.js';
+import Plugin from './plugin';
+import log from 'ckeditor5-utils/src/log';
* Manages a list of CKEditor plugins, including loading, resolving dependencies and initialization.
@@ -5,17 +5,17 @@
/* globals document */
-import StandardEditor from 'ckeditor5/core/editor/standardeditor.js';
-import ClassicTestEditor from 'tests/core/_utils/classictesteditor.js';
+import StandardEditor from 'ckeditor5-core/src/editor/standardeditor';
+import ClassicTestEditor from 'ckeditor5-core/tests/_utils/classictesteditor';
-import Plugin from 'ckeditor5/core/plugin.js';
-import HtmlDataProcessor from 'ckeditor5/engine/dataprocessor/htmldataprocessor.js';
+import Plugin from 'ckeditor5-core/src/plugin';
+import HtmlDataProcessor from 'ckeditor5-engine/src/dataprocessor/htmldataprocessor';
-import ClassicTestEditorUI from 'tests/core/_utils/classictesteditorui.js';
-import BoxedEditorUIView from 'ckeditor5/ui/editorui/boxed/boxededitoruiview.js';
+import ClassicTestEditorUI from 'ckeditor5-core/tests/_utils/classictesteditorui';
+import BoxedEditorUIView from 'ckeditor5-ui/src/editorui/boxed/boxededitoruiview';
-import { getData } from 'ckeditor5/engine/dev-utils/model.js';
-import testUtils from 'tests/core/_utils/utils.js';
+import { getData } from 'ckeditor5-engine/src/dev-utils/model';
+import testUtils from 'ckeditor5-core/tests/_utils/utils';
testUtils.createSinonSandbox();
@@ -5,10 +5,10 @@
/* bender-tags: editor, browser-only */
-import ComponentFactory from 'ckeditor5/ui/componentfactory.js';
-import FocusTracker from 'ckeditor5/utils/focustracker.js';
-import View from 'ckeditor5/ui/view.js';
+import ComponentFactory from 'ckeditor5-ui/src/componentfactory';
+import FocusTracker from 'ckeditor5-utils/src/focustracker';
+import View from 'ckeditor5-ui/src/view';
describe( 'ClassicTestEditorUI', () => {
let editor, view, ui;
@@ -3,7 +3,7 @@
* For licensing, see LICENSE.md.
const obj = {
method() {}
@@ -3,15 +3,15 @@
-import Editor from 'ckeditor5/core/editor/editor.js';
-import ModelTestEditor from 'tests/core/_utils/modeltesteditor.js';
+import Editor from 'ckeditor5-core/src/editor/editor';
+import ModelTestEditor from 'ckeditor5-core/tests/_utils/modeltesteditor';
-import { getData, setData } from 'ckeditor5/engine/dev-utils/model.js';
+import { getData, setData } from 'ckeditor5-engine/src/dev-utils/model';
@@ -3,13 +3,13 @@
-import VirtualTestEditor from 'tests/core/_utils/virtualtesteditor.js';
+import VirtualTestEditor from 'ckeditor5-core/tests/_utils/virtualtesteditor';
@@ -3,10 +3,10 @@
-import ClassicTestEditorUI from './classictesteditorui.js';
+import ClassicTestEditorUI from './classictesteditorui';
* A simplified classic editor. Useful for testing features.
@@ -3,8 +3,8 @@
* A simplified classic editor UI class. Useful for testing features.
* A simple editor implementation with a functional model part of the engine (the document).
* A simple editor implementation useful for testing the engine part of the features.
-import Command from 'ckeditor5/core/command/command.js';
+import Command from 'ckeditor5-core/src/command/command';
describe( 'Command', () => {
let editor, command;
@@ -3,11 +3,11 @@
-import Document from 'ckeditor5/engine/model/document.js';
-import Range from 'ckeditor5/engine/model/range.js';
-import Selection from 'ckeditor5/engine/model/selection.js';
-import getSchemaValidRanges from 'ckeditor5/core/command/helpers/getschemavalidranges.js';
-import { setData, stringify } from 'ckeditor5/engine/dev-utils/model.js';
+import Selection from 'ckeditor5-engine/src/model/selection';
+import getSchemaValidRanges from 'ckeditor5-core/src/command/helpers/getschemavalidranges';
+import { setData, stringify } from 'ckeditor5-engine/src/dev-utils/model';
describe( 'getSchemaValidRanges', () => {
const attribute = 'bold';
@@ -3,9 +3,9 @@
-import isAttributeAllowedInSelection from 'ckeditor5/core/command/helpers/isattributeallowedinselection.js';
-import { setData } from 'ckeditor5/engine/dev-utils/model.js';
+import isAttributeAllowedInSelection from 'ckeditor5-core/src/command/helpers/isattributeallowedinselection';
+import { setData } from 'ckeditor5-engine/src/dev-utils/model';
describe( 'isAttributeAllowedInSelection', () => {
-import Batch from 'ckeditor5/engine/model/batch.js';
-import ToggleAttributeCommand from 'ckeditor5/core/command/toggleattributecommand.js';
-import Position from 'ckeditor5/engine/model/position.js';
-import { setData, getData } from 'ckeditor5/engine/dev-utils/model.js';
+import Batch from 'ckeditor5-engine/src/model/batch';
+import ToggleAttributeCommand from 'ckeditor5-core/src/command/toggleattributecommand';
+import { setData, getData } from 'ckeditor5-engine/src/dev-utils/model';
describe( 'ToggleAttributeCommand', () => {
const attrKey = 'bold';
/* bender-tags: editor */
-import Locale from 'ckeditor5/utils/locale.js';
-import CKEditorError from 'ckeditor5/utils/ckeditorerror.js';
describe( 'Editor', () => {
describe( 'locale', () => {
@@ -6,10 +6,10 @@
/* globals setTimeout */
-import Config from 'ckeditor5/utils/config.js';
-import PluginCollection from 'ckeditor5/core/plugincollection.js';
+import PluginCollection from 'ckeditor5-core/src/plugincollection';
class PluginA extends Plugin {
constructor( editor ) {
@@ -6,13 +6,13 @@
-import EditingController from 'ckeditor5/engine/controller/editingcontroller.js';
-import KeystrokeHandler from 'ckeditor5/core/keystrokehandler.js';
+import KeystrokeHandler from 'ckeditor5-core/src/keystrokehandler';
describe( 'StandardEditor', () => {
let editorElement;
@@ -5,9 +5,9 @@
/* bender-tags: browser-only */
-import { keyCodes } from 'ckeditor5/utils/keyboard.js';
+import { keyCodes } from 'ckeditor5-utils/src/keyboard';
describe( 'KeystrokeHandler', () => {
let editor;
@@ -5,12 +5,12 @@
-import log from 'ckeditor5/utils/log.js';
let PluginA, PluginB, PluginC, PluginD, PluginE, PluginF, PluginG, PluginH, PluginI, PluginX;