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

Commit

Permalink
Merge branch t/ckeditor5-engine/1556
Browse files Browse the repository at this point in the history
Internal: Align code to the latest changes in conversion helpers API, introduced in engine t/1556.
  • Loading branch information
Piotr Jasiun committed Dec 21, 2018
2 parents 5ab39fc + 8f008f6 commit 1041e3b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/tickets/100.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
import LinkEditing from '@ckeditor/ckeditor5-link/src/linkediting';
import Input from '../../src/input';

import { downcastElementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/downcast-converters';
import { upcastElementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/upcast-converters';

import ViewText from '@ckeditor/ckeditor5-engine/src/view/text';
import ViewElement from '@ckeditor/ckeditor5-engine/src/view/element';
import ViewContainerElement from '@ckeditor/ckeditor5-engine/src/view/containerelement';
Expand Down Expand Up @@ -50,15 +47,15 @@ describe( 'Bug ckeditor5-typing#100', () => {
// Mock image feature.
newEditor.model.schema.register( 'image', { allowWhere: '$text' } );

editor.conversion.for( 'downcast' ).add( downcastElementToElement( {
editor.conversion.for( 'downcast' ).elementToElement( {
model: 'image',
view: 'img'
} ) );
} );

editor.conversion.for( 'upcast' ).add( upcastElementToElement( {
editor.conversion.for( 'upcast' ).elementToElement( {
view: 'img',
model: 'image'
} ) );
} );

// Disable MO completely and in a way it won't be reenabled on some Document#render() call.
const mutationObserver = view.getObserver( MutationObserver );
Expand Down

0 comments on commit 1041e3b

Please sign in to comment.