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

Commit

Permalink
Merge pull request #182 from ckeditor/t/ckeditor5-engine/738
Browse files Browse the repository at this point in the history
Other: Aligned code to the changes API in `ckeditor5-engine`. Read more ckeditor/ckeditor5-engine#738.
  • Loading branch information
szymonkups committed Mar 9, 2018
2 parents 4c9126b + 97b1fd1 commit 8b60192
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/imagecaption/imagecaptionediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,11 @@ describe( 'ImageCaptionEditing', () => {
} );

it( 'undo should work after inserting the image', () => {
const image = new ModelElement( 'image' );
image.setAttribute( 'src', '/foo.png' );

setModelData( model, '<paragraph>foo[]</paragraph>' );

model.change( writer => {
const image = writer.createElement( 'image', { src: '/foo.png' } );

writer.insert( image, doc.getRoot() );
} );

Expand Down

0 comments on commit 8b60192

Please sign in to comment.