|
@@ -5,20 +5,18 @@
|
|
|
|
|
|
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
|
|
-import VirtualTestEditor from '/tests/ckeditor5/_utils/virtualtesteditor.js';
|
|
|
|
|
|
|
+import ModelTestEditor from '/tests/ckeditor5/_utils/modeltesteditor.js';
|
|
|
import { default as EnterCommand, enterBlock } from '/ckeditor5/enter/entercommand.js';
|
|
import { default as EnterCommand, enterBlock } from '/ckeditor5/enter/entercommand.js';
|
|
|
import { getData, setData } from '/tests/engine/_utils/model.js';
|
|
import { getData, setData } from '/tests/engine/_utils/model.js';
|
|
|
|
|
|
|
|
let editor, doc;
|
|
let editor, doc;
|
|
|
|
|
|
|
|
beforeEach( () => {
|
|
beforeEach( () => {
|
|
|
- return VirtualTestEditor.create( )
|
|
|
|
|
|
|
+ return ModelTestEditor.create()
|
|
|
.then( newEditor => {
|
|
.then( newEditor => {
|
|
|
editor = newEditor;
|
|
editor = newEditor;
|
|
|
doc = editor.document;
|
|
doc = editor.document;
|
|
|
|
|
|
|
|
- doc.createRoot();
|
|
|
|
|
-
|
|
|
|
|
const command = new EnterCommand( editor );
|
|
const command = new EnterCommand( editor );
|
|
|
editor.commands.set( 'enter', command );
|
|
editor.commands.set( 'enter', command );
|
|
|
|
|
|